Code

Readded description
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 Jun 2008 08:52:13 +0000 (08:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 13 Jun 2008 08:52:13 +0000 (08:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11317 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_MultiSelectWindow.inc

index cf509983efbd16e8c2663bfb5a140c4cfa963791..08e47a82fcdb1cd5730357d2172e513abb0b300d 100644 (file)
@@ -695,11 +695,18 @@ class MultiSelectWindow{
         }
       }
 
+      /* Create entry name 
+       */
+      $name = $val['ou'][0];
+      if(isset($val['description'])){
+        $name .=  " - [".$val["description"][0]."]";
+      }
+
       /* Add departments
        */
       $img = "<img src='images/lists/folder".$non_empty.".png' alt='department'>";
                        $row[]=$field1=array("string"=> $img,"attach"=>"style='text-align:center;width:20px;'");
-                       $row[]=$field2=array("string"=>sprintf($linkopen,$key,$val['ou'][0]), "attach" => "style=''");
+                       $row[]=$field2=array("string"=>sprintf($linkopen,$key,$name), "attach" => "style=''");
 
       /* Add spacer tabs 
        */