Merge pull request #9619 from ATM-Marc/FIX_6.0_extrafield_columns
FIX: showOptionals: column mismatches
This commit is contained in:
commit
4c8664b297
@ -4524,7 +4524,7 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
if (is_array($params) && count($params)>0) {
|
if (is_array($params) && count($params)>0) {
|
||||||
if (array_key_exists('colspan',$params)) {
|
if (array_key_exists('colspan',$params)) {
|
||||||
$colspan=$params['colspan'];
|
$colspan=$params['colspan'] - 1;
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
$colspan='3';
|
$colspan='3';
|
||||||
@ -4581,6 +4581,12 @@ abstract class CommonObject
|
|||||||
if($extrafields->attribute_required[$key])
|
if($extrafields->attribute_required[$key])
|
||||||
$label = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$label.'</span>';
|
$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>';
|
$out .= '<td>'.$langs->trans($label).'</td>';
|
||||||
$html_id = !empty($this->id) ? $this->element.'_extras_'.$key.'_'.$this->id : '';
|
$html_id = !empty($this->id) ? $this->element.'_extras_'.$key.'_'.$this->id : '';
|
||||||
$out .='<td id="'.$html_id.'" class="'.$this->element.'_extras_'.$key.'" '.($colspan?' colspan="'.$colspan.'"':'').'>';
|
$out .='<td id="'.$html_id.'" class="'.$this->element.'_extras_'.$key.'" '.($colspan?' colspan="'.$colspan.'"':'').'>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user