* All apps/custom fields: fixed multiple identical rows, if custom fields where set (introduced in last package)

This commit is contained in:
Ralf Becker 2013-07-20 15:56:41 +00:00
parent b64572d9fc
commit f8c184d860

View File

@ -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)