mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
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:
parent
20da79db8a
commit
266ac3e8f1
@ -130,6 +130,7 @@ class addressbook_so
|
|||||||
var $sql_cols_not_to_search = array(
|
var $sql_cols_not_to_search = array(
|
||||||
'jpegphoto','owner','tid','private','id','cat_id','etag',
|
'jpegphoto','owner','tid','private','id','cat_id','etag',
|
||||||
'modified','modifier','creator','created','tz','account_id',
|
'modified','modifier','creator','created','tz','account_id',
|
||||||
|
'uid',
|
||||||
);
|
);
|
||||||
/**
|
/**
|
||||||
* columns to search, if we search for a single pattern
|
* columns to search, if we search for a single pattern
|
||||||
@ -602,8 +603,7 @@ class addressbook_so
|
|||||||
$cols = $this->account_cols_to_search;
|
$cols = $this->account_cols_to_search;
|
||||||
}
|
}
|
||||||
// search the customfields only if some exist, but only for sql!
|
// search the customfields only if some exist, but only for sql!
|
||||||
$classBackend = get_class($backend);
|
if (get_class($backend) == 'addressbook_sql' && $this->customfields)
|
||||||
if (($classBackend == 'socontacts_sql' || $classBackend == 'addressbook_sql') && $this->customfields)
|
|
||||||
{
|
{
|
||||||
$cols[] = $this->extra_value;
|
$cols[] = $this->extra_value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user