summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 18:34:26 +0100
committerMichael Neves2012-01-26 18:34:26 +0100
commit22f7c2dc17a921bf0a965c282d7d3c2e2459f8e5 (patch)
treec207ae977d081a32a973a07f86e53939f5085a75
parentPreboot add/edit fix (diff)
downloadpbs2-22f7c2dc17a921bf0a965c282d7d3c2e2459f8e5.tar.gz
pbs2-22f7c2dc17a921bf0a965c282d7d3c2e2459f8e5.tar.xz
pbs2-22f7c2dc17a921bf0a965c282d7d3c2e2459f8e5.zip
Preboot add/edit fix
-rw-r--r--application/modules/user/controllers/PrebootController.php4
1 files changed, 3 insertions, 1 deletions
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 {