mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Merge pull request #9619 from ATM-Marc/FIX_6.0_extrafield_columns
FIX: showOptionals: column mismatches
This commit is contained in:
@@ -4524,7 +4524,7 @@ abstract class CommonObject
|
||||
{
|
||||
if (is_array($params) && count($params)>0) {
|
||||
if (array_key_exists('colspan',$params)) {
|
||||
$colspan=$params['colspan'];
|
||||
$colspan=$params['colspan'] - 1;
|
||||
}
|
||||
}else {
|
||||
$colspan='3';
|
||||
@@ -4581,6 +4581,12 @@ abstract class CommonObject
|
||||
if($extrafields->attribute_required[$key])
|
||||
$label = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$label.'</span>';
|
||||
|
||||
if(! empty($conf->global->MAIN_VIEW_LINE_NUMBER))
|
||||
{
|
||||
$out .= '<td> </td>';
|
||||
$colspan--;
|
||||
}
|
||||
|
||||
$out .= '<td>'.$langs->trans($label).'</td>';
|
||||
$html_id = !empty($this->id) ? $this->element.'_extras_'.$key.'_'.$this->id : '';
|
||||
$out .='<td id="'.$html_id.'" class="'.$this->element.'_extras_'.$key.'" '.($colspan?' colspan="'.$colspan.'"':'').'>';
|
||||
|
||||
Reference in New Issue
Block a user