mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
* addressbook: postgres compatibility for distributionlists
This commit is contained in:
parent
f68e92afd8
commit
e637658966
@ -360,6 +360,12 @@ class addressbook_sql extends so_sql_cf
|
||||
$table = $matches[1] == $this->extra_value ? $this->extra_table : $this->table_name;
|
||||
$extra_cols[] = $table.'.'.$matches[1];
|
||||
$extra_cols[] = $table.'.'.$matches[1]."<>''";
|
||||
//_debug_array($matches[1]);
|
||||
if (!empty($order_by) && $matches[1] != 'extra_order.contact_value' && stripos($matches[1],'.')===false) // postgres requires explizit order by
|
||||
{
|
||||
$order_by = str_replace($matches[1],'egw_addressbook.'.$matches[1],$order_by);
|
||||
}
|
||||
//_debug_array($order_by);
|
||||
}
|
||||
}
|
||||
// add join to show only active accounts (only if accounts are shown and in sql and we not already join the accounts table, eg. used by admin)
|
||||
|
Loading…
Reference in New Issue
Block a user