From e3e5925bb9933681a6e00377f600b3e6df7093b8 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 26 Jan 2012 18:56:35 +0100 Subject: Preboot add/edit fix --- application/modules/user/controllers/PrebootController.php | 5 ----- application/modules/user/forms/Preboot.php | 1 - 2 files changed, 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()); } -- cgit v1.2.3-55-g7522