mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
FIX avoid NULL value (#36126)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user