summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 460db08)
raw | patch | inline | side by side (parent: 460db08)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 11:32:57 +0000 (11:32 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 11:32:57 +0000 (11:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10818 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/devices/class_deviceManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/devices/class_deviceManagement.inc b/gosa-plugins/goto/admin/devices/class_deviceManagement.inc
index 6972caefa8d1069ca5fc529179b6cf5a64d35cb3..01e68e74ecf48723fba40e533dd150eb2bfbf6d3 100644 (file)
}
/* Get results and create index */
- $res= get_sub_list($Filter,"devices",get_ou('deviceou'), $base, array("cn","description","dn","objectClass"), $Flags);
+ $res= get_sub_list($Filter,"devices",get_ou('deviceou'), $base, array("cn","gotoHotplugDevice","description","dn","objectClass"), $Flags);
$tmp2 = array();
foreach ($res as $val){
+ if (!isset($val['description']) && isset($val['gotoHotplugDevice'][0])) {
+ $dsc= preg_replace("/\|.*$/", "", $val['gotoHotplugDevice'][0]);
+ if ($dsc != ""){
+ $val['description']= array("count" => 1, 0 => $dsc);
+ }
+ }
$tmp2[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']] = strtolower($val['cn'][0]).$val['cn'][0].$val['dn'];
$tmp[strtolower($val['cn'][0]).$val['cn'][0].$val['dn']]=$val;
}