From 2cc19f0e4252b46050494f4709366cd4bb7ff9d7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Feb 2023 14:59:44 +0100 Subject: [PATCH] Fix css --- htdocs/core/class/extrafields.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 8ac336f84f8..45cafc61237 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1975,6 +1975,8 @@ class ExtraFields if (!empty($extrafield_param) && is_array($extrafield_param)) { $extrafield_param_list = array_keys($extrafield_param['options']); } + + // Set $extrafield_collapse_display_value (do we have to collapse/expand the group after the separator) $extrafield_collapse_display_value = -1; $expand_display = false; if (is_array($extrafield_param_list) && count($extrafield_param_list) > 0) { @@ -1989,7 +1991,7 @@ class ExtraFields $out .= '<'.$tagtype_dyn.' '.(!empty($colspan)?'colspan="' . $colspan . '"':'').'>'; // Some js code will be injected here to manage the collapsing of extrafields // Output the picto - $out .= ''; + $out .= ''; $out .= ' '; $out .= ''; $out .= $langs->trans($this->attributes[$object->table_element]['label'][$key]);