From 1cc0d2ecc98ce0ed42b7d28ae95b56ec92f49024 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 7 Mar 2011 18:31:04 +0100 Subject: BootMenu fix --- application/controllers/BootmenuController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'application/controllers/BootmenuController.php') diff --git a/application/controllers/BootmenuController.php b/application/controllers/BootmenuController.php index dba15a7..2a0ec8a 100644 --- a/application/controllers/BootmenuController.php +++ b/application/controllers/BootmenuController.php @@ -15,9 +15,10 @@ class BootmenuController extends Zend_Controller_Action $bootmenuentries = array(); $this->view->bootmenulist = $bootmenumapper->fetchAll(); foreach ($this->view->bootmenulist as $bootmenu){ - $bootmenuentries[$bootmenu->getID()] = $bootmenuentriesmapper->find($bootmenu->getID()); + $bootmenuentries[$bootmenu->getID()] = $bootmenuentriesmapper->findBy('bootmenuID',$bootmenu->getID()); } $this->view->bootmenuentrylist = $bootmenuentries; + } public function addbootmenuentryAction() @@ -148,10 +149,11 @@ class BootmenuController extends Zend_Controller_Action if ($editbootmenuentryForm->isValid($_POST)) { $bootmenuentry = new Application_Model_BootMenuEntries($_POST); + $bootmenuentry->setBootmenuID($bootmenuID); $bootmenuentry->setID($bootmenuentryID); - $bootmenumapper = new Application_Model_BootMenuEntriesMapper(); + $bootmenuentrymapper = new Application_Model_BootMenuEntriesMapper(); try { $bootmenuentrymapper->save($bootmenuentry); -- cgit v1.2.3-55-g7522