commit
88fc3a4d21
@ -7410,7 +7410,7 @@ abstract class CommonObject
|
|||||||
$langs->load($extrafields->attributes[$this->table_element]['langfile'][$key]);
|
$langs->load($extrafields->attributes[$this->table_element]['langfile'][$key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$colspan = '';
|
$colspan = 0;
|
||||||
if (is_array($params) && count($params) > 0 && $display_type=='card') {
|
if (is_array($params) && count($params) > 0 && $display_type=='card') {
|
||||||
if (array_key_exists('cols', $params)) {
|
if (array_key_exists('cols', $params)) {
|
||||||
$colspan = $params['cols'];
|
$colspan = $params['cols'];
|
||||||
@ -7423,6 +7423,7 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$colspan = intval($colspan);
|
||||||
|
|
||||||
switch ($mode) {
|
switch ($mode) {
|
||||||
case "view":
|
case "view":
|
||||||
@ -7468,7 +7469,7 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$out .= $extrafields->showSeparator($key, $this, ($colspan + 1), $display_type);
|
$out .= $extrafields->showSeparator($key, $this, ($colspan ? $colspan + 1 : 2), $display_type);
|
||||||
} else {
|
} else {
|
||||||
$class = (!empty($extrafields->attributes[$this->table_element]['hidden'][$key]) ? 'hideobject ' : '');
|
$class = (!empty($extrafields->attributes[$this->table_element]['hidden'][$key]) ? 'hideobject ' : '');
|
||||||
$csstyle = '';
|
$csstyle = '';
|
||||||
@ -7489,7 +7490,7 @@ abstract class CommonObject
|
|||||||
$html_id = (empty($this->id) ? '' : 'extrarow-'.$this->element.'_'.$key.'_'.$this->id);
|
$html_id = (empty($this->id) ? '' : 'extrarow-'.$this->element.'_'.$key.'_'.$this->id);
|
||||||
if ($display_type=='card') {
|
if ($display_type=='card') {
|
||||||
if (!empty($conf->global->MAIN_EXTRAFIELDS_USE_TWO_COLUMS) && ($e % 2) == 0) {
|
if (!empty($conf->global->MAIN_EXTRAFIELDS_USE_TWO_COLUMS) && ($e % 2) == 0) {
|
||||||
$colspan = '0';
|
$colspan = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'selectlines') {
|
if ($action == 'selectlines') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user