[-] BO: Fix form displayed for features add after error

This commit is contained in:
Rémi Gaillard committed 2013-02-25 16:45:17 +01:00
1 parent 283a273fd7
commit 2f08f6a292
1 file changed
+3 -2
@@ -374,8 +374,6 @@ class AdminFeaturesControllerCore extends AdminController
parent::initProcess(); parent::initProcess();
if ($this->table == 'feature_value' && ($this->display == 'edit' || $this->display == 'add'))
$this->display = 'editFeatureValue';
} }
public function postProcess() public function postProcess()
@@ -391,6 +389,9 @@ class AdminFeaturesControllerCore extends AdminController
array('errors' => &$this->errors)); // send errors as reference to allow displayFeaturePostProcess to stop saving process array('errors' => &$this->errors)); // send errors as reference to allow displayFeaturePostProcess to stop saving process
parent::postProcess(); parent::postProcess();
if ($this->table == 'feature_value' && ($this->display == 'edit' || $this->display == 'add'))
$this->display = 'editFeatureValue';
} }
/** /**