X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fautocomplete.php;h=975edd2a477fe6f653a81a7f01997107f129ca95;hb=7b85e027ce5de44c9a81feafd7eb601bf987a8c3;hp=b88b89bee011027d53cac61020d83b8594e47c62;hpb=bb54cf17425265c9f565d02829eeea9bcf62ff37;p=gosa.git diff --git a/gosa-core/html/autocomplete.php b/gosa-core/html/autocomplete.php index b88b89bee..975edd2a4 100644 --- a/gosa-core/html/autocomplete.php +++ b/gosa-core/html/autocomplete.php @@ -34,21 +34,10 @@ if (!session::global_is_set('ui')){ exit; } -if(isset($_POST['NAME'])){ - - /* Get configuration from session */ - $config= $_SESSION['ui']; - $ldap= $config->get_ldap_link(); - $ldap->cd($config->current['BASE']); - $n= normalizeLDAP($_POST['NAME']); - $res= $ldap->search ("(&(objectClass=gosaAccount)(cn=*$n*)(givenName=*$n*)(sn=*$n*)(uid=*$n*))", array("cn")); - - echo ''; +/* Is there a filter object arround? */ +if (session::is_set("autocomplete")){ + $filter= session::get("autocomplete"); + $filter->processAutocomplete(); } - ?>