modify filters where extra_table.contact_owner is involved. (reason:ambiguous column error)

This commit is contained in:
Klaus Leithoff 2010-04-20 08:11:34 +00:00
parent 765a1d5c09
commit 4756705182

View File

@ -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))."))";
} }
} }