forked from extern/egroupware
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
This commit is contained in:
parent
ca7e4b66b9
commit
ac2cf67697
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user