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:
commit
c2199cac0d
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user