From ef4000bb19f6b97537155ade78b912734a561bee Mon Sep 17 00:00:00 2001 From: Maximilien Rozniecki Date: Thu, 23 Mar 2023 10:31:39 +0100 Subject: [PATCH] the problem persist, we need to do an array_merge to not lose the invisible etrafields since they are not send via GET/POST --- htdocs/fichinter/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index 31ae0ccaf65..a4244195bfa 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -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) {