Code

Fixed department display popup
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 May 2006 10:00:07 +0000 (10:00 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 May 2006 10:00:07 +0000 (10:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3505 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_divListDepartment.inc

index 40ebcb89962bb8eab0f9bfd04b2ba9daf7583e8b..4eaea028be39dbd20e7ed3a3b0e4a0ef341d1ba0 100755 (executable)
@@ -108,9 +108,8 @@ class divListDepartment extends MultiSelectWindow
         }
       }
 
-      $title = $this->config->departments[$key];
-      $field0 = array("string" => "<img src='images/".$non_empty."folder.png' title='"._("department")."' alt='department'>", "attach" => "style='text-
-          align:center;width:20px;'");
+      $title = preg_replace('/ /', '&nbsp;', @LDAP::fix($this->config->departments[$key]));
+      $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."'");
       $field2 = array("string" => preg_replace("/%KEY%/", base64_encode($key), $actions), "attach" => "style='width:60px;border-right:0px;text-align:
           right;'");