summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authormichael pereira2011-03-07 18:31:04 +0100
committermichael pereira2011-03-07 18:31:04 +0100
commit1cc0d2ecc98ce0ed42b7d28ae95b56ec92f49024 (patch)
treed5a45f91484e9bbd7f27b4c0f26dab51dc6daed5 /application/controllers
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-1cc0d2ecc98ce0ed42b7d28ae95b56ec92f49024.tar.gz
pbs2-1cc0d2ecc98ce0ed42b7d28ae95b56ec92f49024.tar.xz
pbs2-1cc0d2ecc98ce0ed42b7d28ae95b56ec92f49024.zip
BootMenu fix
Diffstat (limited to 'application/controllers')
-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);