FIX avoid NULL value (#36126)

This commit is contained in:
Regis Houssin
2025-11-06 13:15:03 +01:00
committed by GitHub
parent 3cc6f830d2
commit fa10fc0f94
87 changed files with 123 additions and 123 deletions

View File

@@ -9095,7 +9095,7 @@ class Form
if (!empty($objecttmp->fields)) { // For object that declare it, it is better to use declared fields (like societe, contact, ...)
$tmpfieldstoshow = '';
foreach ($objecttmp->fields as $key => $val) {
if (! (int) dol_eval($val['enabled'], 1, 1, '1')) {
if (! (int) dol_eval((string) $val['enabled'], 1, 1, '1')) {
continue;
}
if (!empty($val['showoncombobox'])) {