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:
commit
d104f3c797
1 changed files with 2 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue