Code

Updated label tag for acl selection dialog to match input id
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 Apr 2007 05:58:00 +0000 (05:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 23 Apr 2007 05:58:00 +0000 (05:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6168 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_acl.inc

index 41082b3106b9f17b2e92c18561030ced671d004b..d9546c3664fd0d1c026a338bb99a9d232d581f95 100644 (file)
@@ -691,7 +691,7 @@ class acl 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>";
   }
 
 
@@ -700,9 +700,9 @@ class acl 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>");
   }