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]);