diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-12-18 08:49:36 -0500 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-12-18 08:49:36 -0500 |
commit | aafccefb88f6ac6cebb73426115eb9fba30f306e (patch) | |
tree | 4a925c5b07c0b4ed8e493aaeb4e90e4217d45dcd /program/lib | |
parent | ceee7eb110df884155af024f3b2b7eebb8dd3378 (diff) |
Properly set fuzzy_search for vlv searches
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/Roundcube/rcube_ldap.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index 9d7e6b836..981f2e841 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -765,9 +765,9 @@ class rcube_ldap extends rcube_addressbook if ($this->prop['vlv_search'] && $this->ready && join(',', (array)$fields) == join(',', $list_fields)) { $this->result = new rcube_result_set(0); - $search_suffix = $this->prop['fuzzy_search'] && $mode != 1 ? '*' : ''; + $this->ldap->config_set('fuzzy_search', intval($this->prop['fuzzy_search'] && $mode != 1)); $ldap_data = $this->ldap->search($this->base_dn, $this->prop['filter'], $this->prop['scope'], $this->prop['attributes'], - array('search' => $value . $search_suffix /*, 'sort' => $this->prop['sort'] */)); + array('search' => $value /*, 'sort' => $this->prop['sort'] */)); if ($ldap_data === false) { return $this->result; } |