Don't add filters for required fields which are already in search filter

pull/88/head
Thomas Bruederli 12 years ago
parent c3fe8a0b7a
commit e6a7be8b1f

@ -871,6 +871,8 @@ class rcube_ldap extends rcube_addressbook
// add required (non empty) fields filter
$req_filter = '';
foreach ((array)$required as $field) {
if (in_array($field, (array)$fields)) // required field is already in search filter
continue;
if ($attrs = $this->_map_field($field)) {
if (count($attrs) > 1)
$req_filter .= '(|';

Loading…
Cancel
Save