FIX: Undefined array key default on fields (#29243)
This commit is contained in:
parent
cc112faf0f
commit
660bb7bd5c
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ if ($action == 'update' && !empty($permissiontoadd)) {
|
|||
}
|
||||
|
||||
$object->$key = $value;
|
||||
if ($val['notnull'] > 0 && $object->$key == '' && is_null($val['default'])) {
|
||||
if ($val['notnull'] > 0 && $object->$key == '' && (!isset($val['default']) || is_null($val['default']))) {
|
||||
$error++;
|
||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv($val['label'])), null, 'errors');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue