2
0
forked from Wavyzz/dolibarr

Fix collapse/expand on extrafields

This commit is contained in:
Laurent Destailleur
2023-02-06 03:36:52 +01:00
parent ffc9ab300b
commit 223765aecf
2 changed files with 9 additions and 5 deletions

View File

@@ -8162,7 +8162,8 @@ abstract class CommonObject
// Output value of the current field
if ($extrafields->attributes[$this->table_element]['type'][$key] == 'separate') {
$extrafields_collapse_num = '';
$extrafields_collapse_num = $key;
/*
$extrafield_param = $extrafields->attributes[$this->table_element]['param'][$key];
if (!empty($extrafield_param) && is_array($extrafield_param)) {
$extrafield_param_list = array_keys($extrafield_param['options']);
@@ -8176,6 +8177,7 @@ abstract class CommonObject
}
}
}
*/
// if colspan=0 or 1, the second column is not extended, so the separator must be on 2 columns
$out .= $extrafields->showSeparator($key, $this, ($colspan ? $colspan + 1 : 2), $display_type, $mode);