FIX: SQL Problem in social contribution list

This commit is contained in:
Alexandre SPANGARO 2020-06-25 20:53:03 +02:00
parent bbb8c9418e
commit 0c60c9fd0d

View File

@ -152,6 +152,7 @@ if ($search_typeid) {
$sql .= " AND cs.fk_type=".$db->escape($search_typeid);
}
$sql .= " GROUP BY cs.rowid, cs.fk_type, cs.amount, cs.date_ech, cs.libelle, cs.paye, cs.periode, c.libelle";
if (!empty($conf->projet->enabled)) $sql .= ", p.rowid";
$sql .= $db->order($sortfield, $sortorder);
$totalnboflines = 0;