From 50a386fcbbcd55fe484212379c097fe959e55ce7 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 11 Jul 2011 15:28:59 +0200 Subject: init fix --- .../ipxe/controllers/ResourceController.php | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'application/modules/ipxe/controllers/ResourceController.php') diff --git a/application/modules/ipxe/controllers/ResourceController.php b/application/modules/ipxe/controllers/ResourceController.php index c961f05..839debc 100644 --- a/application/modules/ipxe/controllers/ResourceController.php +++ b/application/modules/ipxe/controllers/ResourceController.php @@ -34,19 +34,19 @@ class Ipxe_ResourceController extends Zend_Controller_Action $this->thisSession->setID($result[0]['sessionID']); } -// $bootmenuntryID = $this->_request->getParam('bme'); + $bootmenuntryID = $this->_request->getParam('bme'); -// if(isset($bootmenuntryID)){ -// $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); -// $bootmenuentry = new Application_Model_BootMenuEntries(); -// $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); -// -// $sessionMapper = new Application_Model_SessionMapper(); -// -// $this->thisSession->setBootmenuentryID($bootmenuntryID); -// $this->thisSession->setBootosID($bootmenuentry->getBootosID()); -// $sessionMapper->save($this->thisSession); -// } + if(isset($bootmenuntryID)){ + $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); + $bootmenuentry = new Application_Model_BootMenuEntries(); + $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); + + $sessionMapper = new Application_Model_SessionMapper(); + + $this->thisSession->setBootmenuentryID($bootmenuntryID); + $this->thisSession->setBootosID($bootmenuentry->getBootosID()); + $sessionMapper->save($this->thisSession); + } } public function getvesamenuAction(){ -- cgit v1.2.3-55-g7522