do not search in uid, while doing a 'global' search, as you cant see the field, and you probably dont understand, why you get extra rows

This commit is contained in:
Klaus Leithoff 2009-09-23 12:16:58 +00:00
parent 83c91dc737
commit 279b89a316

View File

@ -130,6 +130,7 @@ class addressbook_so
var $sql_cols_not_to_search = array(
'jpegphoto','owner','tid','private','id','cat_id','etag',
'modified','modifier','creator','created','tz','account_id',
'uid',
);
/**
* columns to search, if we search for a single pattern
@ -602,8 +603,7 @@ class addressbook_so
$cols = $this->account_cols_to_search;
}
// search the customfields only if some exist, but only for sql!
$classBackend = get_class($backend);
if (($classBackend == 'socontacts_sql' || $classBackend == 'addressbook_sql') && $this->customfields)
if (get_class($backend) == 'addressbook_sql' && $this->customfields)
{
$cols[] = $this->extra_value;
}