mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
modify filters where extra_table.contact_owner is involved. (reason:ambiguous column error)
This commit is contained in:
parent
765a1d5c09
commit
4756705182
@ -121,8 +121,8 @@ class addressbook_sql extends so_sql_cf
|
|||||||
{
|
{
|
||||||
$filter[] = $this->table_name.'.contact_owner != 0'; // in case there have been accounts in sql previously
|
$filter[] = $this->table_name.'.contact_owner != 0'; // in case there have been accounts in sql previously
|
||||||
}
|
}
|
||||||
$filter[] = "(contact_owner=".(int)$GLOBALS['egw_info']['user']['account_id'].
|
$filter[] = "(".$this->table_name.".contact_owner=".(int)$GLOBALS['egw_info']['user']['account_id'].
|
||||||
" OR contact_private=0 AND contact_owner IN (".
|
" OR contact_private=0 AND ".$this->table_name.".contact_owner IN (".
|
||||||
implode(',',array_keys($this->grants))."))";
|
implode(',',array_keys($this->grants))."))";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user