From: cajus Date: Fri, 7 Aug 2009 16:57:30 +0000 (+0000) Subject: Updated autocompletition to use filter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=675d979edf9e1f906f74f1228e31afa01a5a13d2;p=gosa.git Updated autocompletition to use filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14015 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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(); } - ?>