Merge pull request #36434 from atm-lucasmantegari/FIX/ErrorFieldFilterInEvaluation

FIX - Missing AND on fields filter on evaluation class
This commit is contained in:
Laurent Destailleur 2025-11-26 22:27:03 +01:00 committed by GitHub
commit 63cc9127ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -225,7 +225,7 @@ class Evaluation extends CommonObject
}
if (!$user->hasRight('hrm', 'evaluation', 'readall')) {
$this->fields['fk_user']['type'] .= ':t.rowid:IN:'.$this->db->sanitize(implode(",", $user->getAllChildIds(1)));
$this->fields['fk_user']['type'] .= ' AND (t.rowid:IN:'.$this->db->sanitize(implode(",", $user->getAllChildIds(1))) .')';
}
$this->date_eval = dol_now();