From 97383600c745298d595e6ee6258cc0f0e769c65a Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 11 Apr 2011 15:15:00 +0200 Subject: fixes --- application/modules/user/controllers/ConfigController.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'application/modules/user/controllers/ConfigController.php') diff --git a/application/modules/user/controllers/ConfigController.php b/application/modules/user/controllers/ConfigController.php index a38af00..2491c0e 100644 --- a/application/modules/user/controllers/ConfigController.php +++ b/application/modules/user/controllers/ConfigController.php @@ -30,7 +30,8 @@ class user_ConfigController extends Zend_Controller_Action } else { $this->_helper->redirector('login', 'auth'); } - $this->page = $this->_request->getParam('page'); } + $this->page = $this->_request->getParam('page'); + } public function indexAction() { @@ -106,9 +107,9 @@ class user_ConfigController extends Zend_Controller_Action $this->_redirect('/user/config/index/type/'.$this->type.'/page/'.$this->page.'/addresult/forbidden'); if (!isset($_POST["createconfig"])){ - $configForm = new user_Form_Config(array('action' => 'createconfig','page'=>$this->page)); + $configForm = new user_Form_Config(array('action' => 'createconfig','page'=>$this->page, 'type'=>$this->type)); } else { - $configForm = new user_Form_Config(array('action' => 'createconfig','page'=>$this->page),$_POST); + $configForm = new user_Form_Config(array('action' => 'createconfig','page'=>$this->page, 'type'=>$this->type),$_POST); if ($configForm->isValid($_POST)) { @@ -162,11 +163,11 @@ class user_ConfigController extends Zend_Controller_Action if (!isset($_POST["editconfig"])){ - $configForm = new user_Form_Config(array('action' => 'editconfig','page'=>$this->page)); + $configForm = new user_Form_Config(array('action' => 'editconfig','page'=>$this->page, 'type'=>$this->type)); $configForm->populate($config->toArray()); }else{ - $configForm = new user_Form_Config(array('action' => 'editconfig','page'=>$this->page),$_POST); + $configForm = new user_Form_Config(array('action' => 'editconfig','page'=>$this->page, 'type'=>$this->type),$_POST); if ($configForm->isValid($_POST)) { -- cgit v1.2.3-55-g7522