From c96e527f975f070869a5aa4520e68e785f5e1d3e Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 26 Jan 2012 18:13:23 +0100 Subject: Preboot add/edit fix --- application/modules/user/controllers/PrebootController.php | 4 +--- application/modules/user/forms/Preboot.php | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'application/modules') 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); -- cgit v1.2.3-55-g7522