X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fautocomplete.php;h=8804363913ee6de1514d5a9bac14f7c4623d5d0d;hb=b82c2df0022dbb07126f30febb4b566fedad937e;hp=e6bbdbde2b69c765d47a1bee636ccff4dee473d1;hpb=9b7d5cb9fbcc714c02c3da830614c0b3555e692a;p=gosa.git diff --git a/gosa-core/html/autocomplete.php b/gosa-core/html/autocomplete.php index e6bbdbde2..880436391 100644 --- a/gosa-core/html/autocomplete.php +++ b/gosa-core/html/autocomplete.php @@ -42,10 +42,10 @@ if (isset($_GET['type']) && $_GET['type'] == "base") { if (session::is_set("pathMapping") && count($_POST) == 1) { $res= ""; $pathMapping= session::get("pathMapping"); - $search= preg_replace('/"/', '"', current($_POST)); + $department_info= session::get("department_info"); - $config = session::global_get('config'); - foreach ($config->department_info as $dn => $info) { + $search= preg_replace('/"/', '"', current($_POST)); + foreach ($department_info as $dn => $info) { if (!isset($pathMapping[$dn])) { continue; } @@ -72,6 +72,7 @@ if (isset($_GET['type']) && $_GET['type'] == "base") { } else { $ui = session::global_get('ui'); + $config = session::global_get('config'); /* Is there a filter object arround? */ if (session::is_set("autocomplete")){