summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 18:56:35 +0100
committerMichael Neves2012-01-26 18:56:35 +0100
commite3e5925bb9933681a6e00377f600b3e6df7093b8 (patch)
treec2ebc3232b02fc3eeb10a93edb62aebec60f78ed
parentPreboot add/edit fix (diff)
downloadpbs2-e3e5925bb9933681a6e00377f600b3e6df7093b8.tar.gz
pbs2-e3e5925bb9933681a6e00377f600b3e6df7093b8.tar.xz
pbs2-e3e5925bb9933681a6e00377f600b3e6df7093b8.zip
Preboot add/edit fix
-rw-r--r--application/modules/user/controllers/PrebootController.php5
-rw-r--r--application/modules/user/forms/Preboot.php1
2 files changed, 0 insertions, 6 deletions
diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php
index af20ef5..537bd16 100644
--- a/application/modules/user/controllers/PrebootController.php
+++ b/application/modules/user/controllers/PrebootController.php
@@ -180,17 +180,12 @@ class User_PrebootController extends Zend_Controller_Action {
$preboottype = $preboottypeMapper->fetchAll();
if (!isset($_POST["editpreboot"])) {
- if(!isset($_POST['serialnumber'])) {
- $_POST['preboottypeID'] = $preboot->getPreboottypeID();
- }
$prebootForm = new user_Form_Preboot(array(
'action' => 'editpreboot',
'preboottype' => $preboottype,
'page' => $this->page));
- if(!isset($_POST['serialnumber'])) {
$prebootForm->populate($preboot->toArray());
- }
} else {
diff --git a/application/modules/user/forms/Preboot.php b/application/modules/user/forms/Preboot.php
index 40af4fc..ff88a04 100644
--- a/application/modules/user/forms/Preboot.php
+++ b/application/modules/user/forms/Preboot.php
@@ -68,7 +68,6 @@ class user_Form_Preboot extends Zend_Form {
$preboottypefield->setLabel('Type:');
$preboottypefield->setAttrib('readOnly', $meta);
$preboottypefield->setAttrib('onChange', "document.getElementById('".$this->action."').submit();");
- $preboottypefield->setValue($_POST['preboottypeID']);
foreach($this->preboottype as $k => $pt) {
$preboottypefield->addMultiOption($pt->getID(), $pt->getName());
}