diff options
| author | Simon | 2011-04-11 12:25:08 +0200 |
|---|---|---|
| committer | Simon | 2011-04-11 12:25:08 +0200 |
| commit | 7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61 (patch) | |
| tree | 32cb37caf728ff6a6ffd70e8d34892151675c5c1 /application/modules/user/forms/RoleEdit.php | |
| parent | Layout an rechte angepasst & send-post zum testen an datenbank angepasst (diff) | |
| parent | ACL im RoleController (diff) | |
| download | pbs2-7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61.tar.gz pbs2-7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61.tar.xz pbs2-7b2a0e435b7b8bb61bb15cd578c24a3e1e12ba61.zip | |
Merge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2
Diffstat (limited to 'application/modules/user/forms/RoleEdit.php')
| -rw-r--r-- | application/modules/user/forms/RoleEdit.php | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/application/modules/user/forms/RoleEdit.php b/application/modules/user/forms/RoleEdit.php index 938ebce..66e9e62 100644 --- a/application/modules/user/forms/RoleEdit.php +++ b/application/modules/user/forms/RoleEdit.php @@ -3,11 +3,16 @@ class user_Form_RoleEdit extends Zend_Form { private $roleID; + private $inheritanceright; public function setRoleID($roleID){ $this->roleID = $roleID; } + public function setInheritanceright($inheritanceright){ + $this->inheritanceright = $inheritanceright; + } + public function init() { $this->setName("RoleEdit"); @@ -33,15 +38,17 @@ class user_Form_RoleEdit extends Zend_Form 'value' => $_POST['description'], )); - if($_POST['inheritance'] == 1) { - $this->addElement('checkbox', 'inheritance', array( + if($this->inheritanceright) { + if($_POST['inheritance'] == 1) { + $this->addElement('checkbox', 'inheritance', array( 'label' => 'Inheritance:', 'checked' => 'checked', - )); - } else { - $this->addElement('checkbox', 'inheritance', array( + )); + } else { + $this->addElement('checkbox', 'inheritance', array( 'label' => 'Inheritance:', - )); + )); + } } $this->addElement('hidden', 'groupID', array( |
