X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Fautocomplete.php;h=975edd2a477fe6f653a81a7f01997107f129ca95;hb=7b85e027ce5de44c9a81feafd7eb601bf987a8c3;hp=4aaca3bed08195ee1b9d4551027ec3bd2c61c77c;hpb=374a0851c141619e1a745f73580c411cd702ee9a;p=gosa.git diff --git a/gosa-core/html/autocomplete.php b/gosa-core/html/autocomplete.php index 4aaca3bed..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['config']; - $ldap= $config->get_ldap_link(); - $ldap->cd($config->current['BASE']); - $n= normalizeLDAP($_POST['NAME']); - $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(); } - ?>