diff --git a/htdocs/core/class/timespent.class.php b/htdocs/core/class/timespent.class.php index cd0b1a655a2..747aba8bf4e 100644 --- a/htdocs/core/class/timespent.class.php +++ b/htdocs/core/class/timespent.class.php @@ -667,7 +667,7 @@ class TimeSpent extends CommonObject if (isset($this->status)) { $datas['picto'] .= ' '.$this->getLibStatut(5); } - $datas['ref'] .= '
'.$langs->trans('Ref').': '.$this->ref; + $datas['ref'] = '
'.$langs->trans('Ref').': '.$this->ref; return $datas; } diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php index 2851a542ef6..f2aec15659d 100644 --- a/htdocs/modulebuilder/template/class/myobject.class.php +++ b/htdocs/modulebuilder/template/class/myobject.class.php @@ -811,7 +811,7 @@ class MyObject extends CommonObject $datas['ref'] = '
'.$langs->trans('Ref').': '.$this->ref; } if (property_exists($this, 'label')) { - $datas['ref'] = '
'.$langs->trans('Label').': '.$this->label; + $datas['label'] = '
'.$langs->trans('Label').': '.$this->label; } return $datas;