forked from Wavyzz/dolibarr
Merge pull request #24789 from noec764/15_Fix_missing_error_message_intervention
FIX: Missing error message display on insertExtrafields()
This commit is contained in:
@@ -721,6 +721,7 @@ if (empty($reshook)) {
|
|||||||
// Actions on extra fields
|
// Actions on extra fields
|
||||||
$result = $object->insertExtraFields('INTERVENTION_MODIFY');
|
$result = $object->insertExtraFields('INTERVENTION_MODIFY');
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user