]> git.agnieray.net Git - galette.git/commitdiff
Fix dynamic separator edition
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 19 Apr 2021 08:16:30 +0000 (10:16 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 19 Apr 2021 08:16:30 +0000 (10:16 +0200)
galette/lib/Galette/DynamicFields/DynamicField.php

index cb58df00ba60ffedd178a1fc26131899ccb12205..61292db25874a13a3e66b0f2870188a11e7c3c6b 100644 (file)
@@ -624,7 +624,7 @@ abstract class DynamicField
             }
         }
 
-        $this->required = $values['field_required'];
+        $this->required = $values['field_required'] ?? false;
 
         if (count($this->errors) === 0 && $this->isDuplicate($values['form_name'], $this->name, $this->id)) {
             $this->errors[] = _T("- Field name already used.");