From 7dce488bb10a0f4d74197cc195b933168c00102f Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 26 Jan 2012 16:19:48 +0100 Subject: Bootiso View updated --- application/modules/user/controllers/BootisoController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'application/modules/user/controllers') diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php index fd6419a..daa3d91 100644 --- a/application/modules/user/controllers/BootisoController.php +++ b/application/modules/user/controllers/BootisoController.php @@ -87,12 +87,12 @@ class user_BootisoController extends Zend_Controller_Action { $this->view->bootisolist = array_reverse($this->view->bootisolist); - $prebootMapper = new Application_Model_PreBootMapper(); - $this->view->prebootlist = array(); - + $preboottypeMapper = new Application_Model_PreBootTypeMapper(); + foreach ($this->view->bootisolist as $bootiso) { - $bootiso->setPrebootID("[".$bootiso->getPrebootID()."] ".$prebootMapper->find($bootiso->getPrebootID())->getTitle()); $bootiso->setGroupID("[".$bootiso->getGroupID()."] ".$groupMapper->find($bootiso->getGroupID())->getTitle()); + $bootiso->setPreBootTypeID($preboottypeMapper->find($bootiso->getID())->getName()); + $bootiso->setCreated(date(Zend_Registry::get('dateformat'), $bootiso->getCreated())); if($bootiso->getExpires() == "") { $bootiso->setExpires(0); -- cgit v1.2.3-55-g7522