the problem persist, we need to do an array_merge to not lose the invisible etrafields since they are not send via GET/POST

This commit is contained in:
Maximilien Rozniecki 2023-03-23 10:31:39 +01:00
parent 3090caccb4
commit ef4000bb19

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) {