mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
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:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user