Merge pull request #27174 from Tetras-Libre/FIX-Blank-page-when-creating-event-with-a-missing-required-extra-field

Fix blank page when creating event with a missing required extra field
This commit is contained in:
Laurent Destailleur
2023-12-19 15:42:35 +01:00
committed by GitHub

View File

@@ -475,7 +475,8 @@ if (empty($reshook) && $action == 'add') {
// Fill array 'array_options' with data from add form
$ret = $extrafields->setOptionalsFromPost(null, $object);
if ($ret < 0) {
$error++;
$error++; $donotclearsession = 1;
$action = 'create';
}