From 7b07d07d02551bc3f167799919a32b1e6c4eff3c Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 31 Jul 2015 15:46:46 +0200 Subject: [PATCH] QuickForm: prepare elements before onRequest --- library/Director/Web/Form/QuickForm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/Director/Web/Form/QuickForm.php b/library/Director/Web/Form/QuickForm.php index b2792da8..fd255233 100644 --- a/library/Director/Web/Form/QuickForm.php +++ b/library/Director/Web/Form/QuickForm.php @@ -272,8 +272,6 @@ abstract class QuickForm extends Zend_Form $this->setRequest($request); } - $this->prepareElements(); - if ($this->hasBeenSent()) { $post = $this->getRequest()->getPost(); if ($this->hasBeenSubmitted()) { @@ -366,6 +364,7 @@ abstract class QuickForm extends Zend_Form } $this->request = $request; + $this->prepareElements(); $this->onRequest(); return $this; }