summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms
diff options
context:
space:
mode:
authormichael pereira2011-04-08 16:00:17 +0200
committermichael pereira2011-04-08 16:00:17 +0200
commitaa31509554252a38150bd2a8fc6d3974e851bfd9 (patch)
treec68b6890c6be050711fd32599676ca4e560804b8 /application/modules/user/forms
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-aa31509554252a38150bd2a8fc6d3974e851bfd9.tar.gz
pbs2-aa31509554252a38150bd2a8fc6d3974e851bfd9.tar.xz
pbs2-aa31509554252a38150bd2a8fc6d3974e851bfd9.zip
kcl fixed
Diffstat (limited to 'application/modules/user/forms')
-rw-r--r--application/modules/user/forms/BootmenuEntries.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/application/modules/user/forms/BootmenuEntries.php b/application/modules/user/forms/BootmenuEntries.php
index 5be1b59..58a2820 100644
--- a/application/modules/user/forms/BootmenuEntries.php
+++ b/application/modules/user/forms/BootmenuEntries.php
@@ -7,13 +7,8 @@ class user_Form_BootmenuEntries extends Zend_Form
private $configlist;
private $maxorder;
private $action;
- private $page;
- private $kcl;
+ private $page;
-
- public function setKcl($kcl){
- $this->kcl = $kcl;
- }
public function setAction($action){
$this->action = $action;
@@ -48,8 +43,6 @@ class user_Form_BootmenuEntries extends Zend_Form
$firstbootos = $this->bootoslist[$key];
$_POST['bootosID'] = $firstbootos->getID();
- if(!isset($this->kcl))
- $this->kcl = true;
}
$this->setName($this->action);
@@ -80,11 +73,11 @@ class user_Form_BootmenuEntries extends Zend_Form
$kclactive = $this->createElement('checkbox','kcl');
$kclactive->setAttrib('onChange', "document.getElementById('".$this->action."').submit();");
$kclactive->setLabel('Use default KCL:');
- $kclactive->setValue($this->kcl);
+ $kclactive->setValue($_POST['kcl']);
$this->addElement($kclactive);
- if($this->kcl){
+ if($_POST['kcl']){
$this->addElement('textarea', 'defaultkcl', array(
'filters' => array('StringTrim'),
'validators' => array(
@@ -100,7 +93,7 @@ class user_Form_BootmenuEntries extends Zend_Form
));
}
- if($this->kcl)
+ if($_POST['kcl'])
$kcllength = 175 - strlen($this->bootoslist[$_POST['bootosID']]->getDefaultkcl());
else
$kcllength = 175;