From dd8dbbcdde46419dd1ad193a8170cde5ca24630b Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 26 Jan 2012 15:56:42 +0100 Subject: Preboot Serial and type in View --- application/modules/user/controllers/PrebootController.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application/modules/user/controllers') diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php index 746cab7..4f83820 100644 --- a/application/modules/user/controllers/PrebootController.php +++ b/application/modules/user/controllers/PrebootController.php @@ -61,9 +61,12 @@ class User_PrebootController extends Zend_Controller_Action { if(!Pbs_Acl::checkRight('pro')) { $this->_redirect('/user/index'); } + $preboottypeMapper = new Application_Model_PreBootTypeMapper(); + $this->view->prebootlist = $this->prebootMapper->findBy(array("groupID" => $groupID)); foreach ($this->view->prebootlist as $preboot) { $preboot->setCreated(date(Zend_Registry::get('dateformat'), $preboot->getCreated())); + $preboot->setPreBootTypeID($preboottypeMapper->find($preboot->getPreBootTypeID())->getName()); } // Search -- cgit v1.2.3-55-g7522