Code

Department list : Skip checkbox in front of the '.' entry, which represents the curre...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Apr 2007 09:20:33 +0000 (09:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 Apr 2007 09:20:33 +0000 (09:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6080 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_divListDepartment.inc

index ecc1c3784f397b9ae61e206f2710b351ee1ccda6..2b7f588621ee04fec436b003699bb777e06102e0 100755 (executable)
@@ -156,9 +156,15 @@ class divListDepartment extends MultiSelectWindow
       }
 
       $title = preg_replace('/ /', '&nbsp;', @LDAP::fix($this->config->departments[$key]));
-          /* Create each field */
-      $field01 = array("string" => "<input type='checkbox' id='item_selected_".base64_encode($key)."' name='item_selected_".base64_encode($key)."'>" ,
-                      "attach" => "style='width:20px;'");
+
+      if($val == "."){
+        $field01 = array("string" => "&nbsp;",
+            "attach" => "style='width:20px;'");
+      }else{
+        $field01 = array("string" => "<input type='checkbox' id='item_selected_".base64_encode($key)."' 
+            name='item_selected_".base64_encode($key)."'>" ,
+            "attach" => "style='width:20px;'");
+      }
 
       $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach" => "style='text-align:center;width:20px;'");
       $field1 = array("string" => sprintf($linkopen,base64_encode($key),$val), "attach" => "style='' title='".$title."'");