From 39d0fbf9aef02469def91c9cbf97754393f77339 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 21 Apr 2010 18:52:49 +0000 Subject: [PATCH] Fix for only_keys=true and filter --- addressbook/inc/class.addressbook_sql.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index 3f59bf9a39..a4f43d2c50 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -289,9 +289,7 @@ class addressbook_sql extends so_sql_cf switch(gettype($only_keys)) { case 'boolean': - // only return the egw_addressbook columns, to not generate dublicates by the left join - // 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' : '*'); + // Correctly handled by parent class break; case 'string': $only_keys = explode(',',$only_keys);