diff options
| author | Michael Neves | 2012-01-26 16:19:48 +0100 |
|---|---|---|
| committer | Michael Neves | 2012-01-26 16:19:48 +0100 |
| commit | 7dce488bb10a0f4d74197cc195b933168c00102f (patch) | |
| tree | 680805dc6056528bea8233efe00b32d3b44f1685 /application/modules/user/controllers/BootisoController.php | |
| parent | Preboot Type fix im Model (diff) | |
| download | pbs2-7dce488bb10a0f4d74197cc195b933168c00102f.tar.gz pbs2-7dce488bb10a0f4d74197cc195b933168c00102f.tar.xz pbs2-7dce488bb10a0f4d74197cc195b933168c00102f.zip | |
Bootiso View updated
Diffstat (limited to 'application/modules/user/controllers/BootisoController.php')
| -rw-r--r-- | application/modules/user/controllers/BootisoController.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
