mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
* All apps/custom fields: fixed multiple identical rows, if custom fields where set (introduced in last package)
This commit is contained in:
parent
b64572d9fc
commit
f8c184d860
@ -500,6 +500,11 @@ class so_sql_cf extends so_sql
|
||||
$col = $this->table_name .'.'.array_search($col, $this->db_cols).' AS '.$col;
|
||||
}
|
||||
}
|
||||
$only_keys[0] = 'DISTINCT '.$only_keys[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$only_keys = 'DISTINCT '.$only_keys;
|
||||
}
|
||||
// check if we order by a custom field --> join cf table for given cf and order by it's value
|
||||
if (strpos($order_by,self::CF_PREFIX) !== false)
|
||||
|
Loading…
Reference in New Issue
Block a user