mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Debug v14
This commit is contained in:
@@ -6840,9 +6840,12 @@ class Form
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
$label = '';
|
||||
$tmparray = explode(',', $fieldstoshow);
|
||||
$oldvalueforshowoncombobox = 0;
|
||||
foreach ($tmparray as $key => $val) {
|
||||
$val = preg_replace('/t\./', '', $val);
|
||||
$label .= (($label && $obj->$val) ? ' - ' : '').$obj->$val;
|
||||
$label .= (($label && $obj->$val) ? ($oldvalueforshowoncombobox != $objecttmp->fields[$val]['showoncombobox'] ? ' - ' : ' ') : '');
|
||||
$label .= $obj->$val;
|
||||
$oldvalueforshowoncombobox = $objecttmp->fields[$val]['showoncombobox'];
|
||||
}
|
||||
if (empty($outputmode)) {
|
||||
if ($preselectedvalue > 0 && $preselectedvalue == $obj->rowid) {
|
||||
|
||||
Reference in New Issue
Block a user