diff options
| author | michael pereira | 2011-04-08 15:20:51 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-08 15:20:51 +0200 |
| commit | b219a289b07928d832755447f54ca3f9b3fd2b4b (patch) | |
| tree | 86e0528001ae4f6423adf8a88410233f2d6d0e98 /application/modules/user/forms/BootmenuEntries.php | |
| parent | defaultbootmenu fertig (diff) | |
| download | pbs2-b219a289b07928d832755447f54ca3f9b3fd2b4b.tar.gz pbs2-b219a289b07928d832755447f54ca3f9b3fd2b4b.tar.xz pbs2-b219a289b07928d832755447f54ca3f9b3fd2b4b.zip | |
kcl gefixt
Diffstat (limited to 'application/modules/user/forms/BootmenuEntries.php')
| -rw-r--r-- | application/modules/user/forms/BootmenuEntries.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/application/modules/user/forms/BootmenuEntries.php b/application/modules/user/forms/BootmenuEntries.php index b897974..5be1b59 100644 --- a/application/modules/user/forms/BootmenuEntries.php +++ b/application/modules/user/forms/BootmenuEntries.php @@ -47,10 +47,9 @@ class user_Form_BootmenuEntries extends Zend_Form @list($key) = array_keys($this->bootoslist); $firstbootos = $this->bootoslist[$key]; $_POST['bootosID'] = $firstbootos->getID(); - if(isset($this->kcl)) - $_POST['kclactive'] = true; - else - $_POST['kclactive'] = false; + + if(!isset($this->kcl)) + $this->kcl = true; } $this->setName($this->action); @@ -78,15 +77,15 @@ class user_Form_BootmenuEntries extends Zend_Form $bootosfield->setRegisterInArrayValidator(false); $this->addElement($bootosfield); - $kclactive = $this->createElement('checkbox','kclactive'); + $kclactive = $this->createElement('checkbox','kcl'); $kclactive->setAttrib('onChange', "document.getElementById('".$this->action."').submit();"); $kclactive->setLabel('Use default KCL:'); - $kclactive->setValue($_POST['kclactive']); + $kclactive->setValue($this->kcl); $this->addElement($kclactive); - if($_POST['kclactive']){ - $this->addElement('textarea', 'kcl', array( + if($this->kcl){ + $this->addElement('textarea', 'defaultkcl', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 50)), @@ -101,7 +100,7 @@ class user_Form_BootmenuEntries extends Zend_Form )); } - if($_POST['kclactive']) + if($this->kcl) $kcllength = 175 - strlen($this->bootoslist[$_POST['bootosID']]->getDefaultkcl()); else $kcllength = 175; |
