Fix travis sql

This commit is contained in:
VESSILLER 2023-09-13 08:20:15 +02:00
parent c6b4eb0da7
commit 54bae2e5e2

View File

@ -299,8 +299,8 @@ class FormListWebPortal
} else {
$sql .= " WHERE 1 = 1";
}
// TODO : filter on logged third-party
//$sql .= " AND t.fk_soc = " . (int) $context->logged_thirdparty->id;
// filter on logged third-party
$sql .= " AND t.fk_soc = " . (int) $context->logged_thirdparty->id;
foreach ($search as $key => $val) {
if (array_key_exists($key, $object->fields)) {
if (($key == 'status' || $key == 'fk_statut') && $search[$key] == $emptyValueKey) {