summaryrefslogtreecommitdiffstats
path: root/application/modules/user/forms/RoleEdit.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-03-28 16:51:10 +0200
committerBjörn Geiger2011-03-28 16:51:10 +0200
commit04c69f27f49c3f40888ee4938388413b07ad5e09 (patch)
tree4c4300fa8ecfcbab7eb29243dd9bb5d8d4447471 /application/modules/user/forms/RoleEdit.php
parentMerge branch 'master' of openslx.org:lsfks/master-teamprojekt/pbs2 (diff)
downloadpbs2-04c69f27f49c3f40888ee4938388413b07ad5e09.tar.gz
pbs2-04c69f27f49c3f40888ee4938388413b07ad5e09.tar.xz
pbs2-04c69f27f49c3f40888ee4938388413b07ad5e09.zip
überschriften hinzugefügt, andere Fehler korrigiert
Diffstat (limited to 'application/modules/user/forms/RoleEdit.php')
-rw-r--r--application/modules/user/forms/RoleEdit.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/application/modules/user/forms/RoleEdit.php b/application/modules/user/forms/RoleEdit.php
index 848dba3..0bdc977 100644
--- a/application/modules/user/forms/RoleEdit.php
+++ b/application/modules/user/forms/RoleEdit.php
@@ -54,21 +54,12 @@ class user_Form_RoleEdit extends Zend_Form
'label' => 'Save',
));
- if(strpos($_SERVER['HTTP_REFERER'], '/user/role/show/roleID')) {
- $this->addElement('button', 'cancel', array(
+ $this->addElement('button', 'cancel', array(
'required' => false,
'ignore' => true,
'label' => 'Cancel',
- 'onclick' => 'location.href="/user/role/show/roleID/' . $this->roleID . '"',
- ));
- } else {
- $this->addElement('button', 'cancel', array(
- 'required' => false,
- 'ignore' => true,
- 'label' => 'Cancel',
- 'onclick' => 'location.href="/user/role/"',
- ));
- }
+ 'onclick' => 'location.href="' . $_SERVER['HTTP_REFERER'] . '"',
+ ));
}