mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fix for only_keys=true and filter
This commit is contained in:
parent
50ff02da4d
commit
39d0fbf9ae
@ -289,9 +289,7 @@ class addressbook_sql extends so_sql_cf
|
|||||||
switch(gettype($only_keys))
|
switch(gettype($only_keys))
|
||||||
{
|
{
|
||||||
case 'boolean':
|
case 'boolean':
|
||||||
// only return the egw_addressbook columns, to not generate dublicates by the left join
|
// Correctly handled by parent class
|
||||||
// and to not return the NULL for contact_{id|owner} of not found custom fields!
|
|
||||||
$only_keys = (strpos($join,$this->extra_table)!==false?'DISTINCT ':'').$this->table_name.'.'.($only_keys ? 'contact_id AS contact_id' : '*');
|
|
||||||
break;
|
break;
|
||||||
case 'string':
|
case 'string':
|
||||||
$only_keys = explode(',',$only_keys);
|
$only_keys = explode(',',$only_keys);
|
||||||
|
Loading…
Reference in New Issue
Block a user