Debug v14
This commit is contained in:
parent
1e657b8621
commit
fb0d2cdddc
@ -6840,9 +6840,12 @@ class Form
|
|||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
$label = '';
|
$label = '';
|
||||||
$tmparray = explode(',', $fieldstoshow);
|
$tmparray = explode(',', $fieldstoshow);
|
||||||
|
$oldvalueforshowoncombobox = 0;
|
||||||
foreach ($tmparray as $key => $val) {
|
foreach ($tmparray as $key => $val) {
|
||||||
$val = preg_replace('/t\./', '', $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 (empty($outputmode)) {
|
||||||
if ($preselectedvalue > 0 && $preselectedvalue == $obj->rowid) {
|
if ($preselectedvalue > 0 && $preselectedvalue == $obj->rowid) {
|
||||||
|
|||||||
@ -198,9 +198,9 @@ class Partnership extends CommonObject
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member') {
|
if ($conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member') {
|
||||||
$this->fields['fk_member'] = array('type'=>'integer:Adherent:adherents/class/adherent.class.php:1', 'label'=>'Member', 'enabled'=>'1', 'position'=>50, 'notnull'=>-1, 'visible'=>1, 'index'=>1,);
|
$this->fields['fk_member'] = array('type'=>'integer:Adherent:adherents/class/adherent.class.php:1', 'label'=>'Member', 'enabled'=>'1', 'position'=>50, 'notnull'=>-1, 'visible'=>1, 'index'=>1, 'picto'=>'member');
|
||||||
} else {
|
} else {
|
||||||
$this->fields['fk_soc'] = array('type'=>'integer:Societe:societe/class/societe.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label'=>'ThirdParty', 'enabled'=>'1', 'position'=>50, 'notnull'=>-1, 'visible'=>1, 'index'=>1,);
|
$this->fields['fk_soc'] = array('type'=>'integer:Societe:societe/class/societe.class.php:1:status=1 AND entity IN (__SHARED_ENTITIES__)', 'label'=>'ThirdParty', 'enabled'=>'1', 'position'=>50, 'notnull'=>-1, 'visible'=>1, 'index'=>1, 'picto'=>'societe');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
if (empty($conf->global->MAIN_SHOW_TECHNICAL_ID) && isset($this->fields['rowid'])) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user