From 22f7c2dc17a921bf0a965c282d7d3c2e2459f8e5 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 26 Jan 2012 18:34:26 +0100 Subject: Preboot add/edit fix --- application/modules/user/controllers/PrebootController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/modules/user/controllers/PrebootController.php b/application/modules/user/controllers/PrebootController.php index 3acf3ca..af20ef5 100644 --- a/application/modules/user/controllers/PrebootController.php +++ b/application/modules/user/controllers/PrebootController.php @@ -188,7 +188,9 @@ class User_PrebootController extends Zend_Controller_Action { 'action' => 'editpreboot', 'preboottype' => $preboottype, 'page' => $this->page)); - $prebootForm->populate($preboot->toArray()); + if(!isset($_POST['serialnumber'])) { + $prebootForm->populate($preboot->toArray()); + } } else { -- cgit v1.2.3-55-g7522