diff options
author | Michael Neves | 2012-01-26 18:13:23 +0100 |
---|---|---|
committer | Michael Neves | 2012-01-26 18:13:23 +0100 |
commit | c96e527f975f070869a5aa4520e68e785f5e1d3e (patch) | |
tree | af80490b59e6b65302ad20950c614bc07c202dc8 | |
parent | Preboot add/edit fix (diff) | |
download | pbs2-c96e527f975f070869a5aa4520e68e785f5e1d3e.tar.gz pbs2-c96e527f975f070869a5aa4520e68e785f5e1d3e.tar.xz pbs2-c96e527f975f070869a5aa4520e68e785f5e1d3e.zip |
Preboot add/edit fix
-rw-r--r-- | application/modules/user/controllers/PrebootController.php | 4 | ||||
-rw-r--r-- | application/modules/user/forms/Preboot.php | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php index f462b27..a22ae18 100644 --- a/application/modules/user/controllers/PrebootController.php +++ b/application/modules/user/controllers/PrebootController.php @@ -106,8 +106,6 @@ class User_PrebootController extends Zend_Controller_Action { $preboottypeMapper = new Application_Model_PreBootTypeMapper(); $preboottype = $preboottypeMapper->fetchAll(); - - print_a($preboottype); if (!isset($_POST["createpreboot"])) { $prebootForm = new user_Form_Preboot(array( @@ -159,7 +157,7 @@ class User_PrebootController extends Zend_Controller_Action { } } - // $this->view->prebootForm = $prebootForm; + $this->view->prebootForm = $prebootForm; } public function editprebootAction() { diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php index cff3e26..40af4fc 100644 --- a/application/modules/user/forms/Preboot.php +++ b/application/modules/user/forms/Preboot.php @@ -21,7 +21,12 @@ class user_Form_Preboot extends Zend_Form { } public function setPage($p) { $this->page = $p; + } + public function setPreboottype($pt) { + $this->preboottype = $pt; } + + public function init() { $this->setName($this->action); |