Code

Updated ldabel tags
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 Apr 2007 05:58:20 +0000 (05:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 Apr 2007 05:58:20 +0000 (05:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6169 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/acl/class_aclRole.inc

index 76878da0c51e5aa90625c236ef813b9bc49ee5d8..9e21246ca322215dd0faffe7707c52c5b8f5e361 100644 (file)
@@ -259,7 +259,7 @@ class aclrole extends plugin
     }
 
     /* Save new acl in case of base edit mode */
-    if ($this->aclType == 'base' && !$firstedit){
+    if (1 == 0 && $this->aclType == 'base' && !$firstedit){
       $this->aclContents= $new_acl;
     }
 
@@ -625,7 +625,7 @@ class aclrole extends plugin
   {
     $state= $state?"checked":"";
     return "\n      <input id='acl_".preg_replace("/[^a-z0-9]/i","_",$name)."' type=checkbox name='acl_$name' $state>".
-           "\n      <label for='acl_$name'>$text</label>";
+           "\n      <label for='acl_".preg_replace("/[^a-z0-9]/i","_",$name)."'>$text</label>";
   }
 
 
@@ -634,9 +634,9 @@ class aclrole extends plugin
     $rstate= preg_match('/r/', $state)?'checked':'';
     $wstate= preg_match('/w/', $state)?'checked':'';
     return ("\n      <input id='acl_".preg_replace("/[^a-z0-9]/i","_",$name)."_r' type=checkbox name='acl_${name}_r' $rstate>".
-            "\n      <label for='acl_${name}_r'>"._("read")."</label>".
+            "\n      <label for='acl_".preg_replace("/[^a-z0-9]/i","_",$name)."_r'>"._("read")."</label>".
             "\n      <input id='acl_".preg_replace("/[^a-z0-9]/i","_",$name)."_w' type=checkbox name='acl_${name}_w' $wstate>".
-            "\n      <label for='acl_${name}_w'>"._("write")."</label>");
+            "\n      <label for='acl_".preg_replace("/[^a-z0-9]/i","_",$name)."_w'>"._("write")."</label>");
   }