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

@@ -168,7 +168,7 @@ $permissiontoadd = $usercancreate; // Used by the include of actions_addu
$permissiontoeditextra = $usercancreate;
if (GETPOST('attribute', 'aZ09') && isset($extrafields->attributes[$object->table_element]['perms'][GETPOST('attribute', 'aZ09')])) {
// For action 'update_extras', is there a specific permission set for the attribute to update
$permissiontoeditextra = dol_eval($extrafields->attributes[$object->table_element]['perms'][GETPOST('attribute', 'aZ09')]);
$permissiontoeditextra = dol_eval((string) $extrafields->attributes[$object->table_element]['perms'][GETPOST('attribute', 'aZ09')]);
}
$error = 0;