summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/BootisoController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/controllers/BootisoController.php')
-rw-r--r--application/modules/user/controllers/BootisoController.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php
index 7bdeb7c..1d574d2 100644
--- a/application/modules/user/controllers/BootisoController.php
+++ b/application/modules/user/controllers/BootisoController.php
@@ -181,20 +181,21 @@ class user_BootisoController extends Zend_Controller_Action {
$groupgroupsMapper = new Application_Model_GroupGroupsMapper();
$childgroups = count($groupgroupsMapper->getChildGroups($groupID));
-
- $prebootMapper = new Application_Model_PreBootMapper();
- $prebootlist = $prebootMapper->findBy(array("groupID" => $groupID));
+
+ $preboottypeMapper = new Application_Model_PreBootTypeMapper();
+ $preboottype = $preboottypeMapper->fetchAll();
+
if (!isset($_POST["createbootiso"])) {
$bootisoForm = new user_Form_Bootiso(array(
'action' => 'createbootiso',
- 'prebootlist' => $prebootlist,
+ 'preboottype' => $preboottype,
'groupdepth' => $childgroups,
'page' => $this->page));
} else {
$bootisoForm = new user_Form_Bootiso(array(
'action' => 'createbootiso',
- 'prebootlist' => $prebootlist,
+ 'preboottype' => $preboottype,
'groupdepth' => $childgroups,
'page' => $this->page), $_POST);
@@ -232,8 +233,8 @@ class user_BootisoController extends Zend_Controller_Action {
$groupID = $this->membership->getGroupID();
- $prebootMapper = new Application_Model_PreBootMapper();
- $prebootlist = $prebootMapper->findBy(array("groupID" => $groupID));
+ $preboottypeMapper = new Application_Model_PreBootTypeMapper();
+ $preboottype = $preboottypeMapper->fetchAll();
$groupgroupsMapper = new Application_Model_GroupGroupsMapper();
$childgroups = count($groupgroupsMapper->getChildGroups($groupID));
@@ -248,7 +249,7 @@ class user_BootisoController extends Zend_Controller_Action {
$bootisoForm = new user_Form_Bootiso(array(
'action' => 'editbootiso',
- 'prebootlist' => $prebootlist,
+ 'preboottype' => $preboottype,
'groupdepth' => $childgroups,
'page' => $this->page));
$bootisoForm->populate($bootiso->toArray());
@@ -256,7 +257,7 @@ class user_BootisoController extends Zend_Controller_Action {
} else {
$bootisoForm = new user_Form_Bootiso(array(
'action' => 'editbootiso',
- 'prebootlist' => $prebootlist,
+ 'preboottype' => $preboottype,
'groupdepth' => $childgroups,
'page' => $this->page), $_POST);