summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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());
}