From ac2cf676973106b41a707615a15390a97bd1fa37 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 11 Jan 2013 14:46:33 +0000 Subject: [PATCH] if we search for list_id, note that we are joining addressbook_lists on addressbook2list, both containing list_id, so we need to specify tablename on search-column to meet sql requirements --- addressbook/inc/class.addressbook_sql.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addressbook/inc/class.addressbook_sql.inc.php b/addressbook/inc/class.addressbook_sql.inc.php index dbfd978233..bd7df846da 100644 --- a/addressbook/inc/class.addressbook_sql.inc.php +++ b/addressbook/inc/class.addressbook_sql.inc.php @@ -468,6 +468,11 @@ class addressbook_sql extends so_sql_cf */ function get_lists($uids,$uid_column='list_owner',$member_attr=null,$limit_in_ab=false) { + if (isset($uids['list_id'])) + { + $uids[$this->lists_table.'.list_id'] = $uids['list_id']; + unset($uids['list_id']); + } $lists = array(); foreach($this->db->select($this->lists_table,'*',$uid_column?array($uid_column=>$uids):$uids,__LINE__,__FILE__, false,'ORDER BY list_owner<>'.(int)$GLOBALS['egw_info']['user']['account_id'].',list_name') as $row)