Merge pull request #24329 from MaximilienR-easya/dev_Bugfix_fetch_optionnals_before_update_line

Bugfix fetch_optionals before the line update to not lose the invisible fields
This commit is contained in:
Laurent Destailleur 2023-03-26 15:34:57 +02:00 committed by GitHub
commit c2199cac0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -607,7 +607,7 @@ if (empty($reshook)) {
// Extrafields
$extrafields->fetch_name_optionals_label($object->table_element_line);
$array_options = $extrafields->getOptionalsFromPost($object->table_element_line);
$objectline->array_options = $array_options;
$objectline->array_options = array_merge($objectline->array_options, $array_options);
$result = $objectline->update($user);
if ($result < 0) {