summaryrefslogtreecommitdiffstats
path: root/application/controllers/BootmenuController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/BootmenuController.php')
-rw-r--r--application/controllers/BootmenuController.php6
1 files changed, 4 insertions, 2 deletions
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);