From 2e22f9e75afcd264162275c24411513232eea087 Mon Sep 17 00:00:00 2001
From: Eric - CAP-REL <1468823+rycks@users.noreply.github.com>
Date: Sat, 27 Dec 2025 23:04:40 +0100
Subject: [PATCH] fix concat for a undef entry of array (#36754)
---
htdocs/core/class/timespent.class.php | 2 +-
htdocs/modulebuilder/template/class/myobject.class.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/htdocs/core/class/timespent.class.php b/htdocs/core/class/timespent.class.php
index 256077fa40f..711aa8e25e9 100755
--- a/htdocs/core/class/timespent.class.php
+++ b/htdocs/core/class/timespent.class.php
@@ -725,7 +725,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 b4f41e00b2f..52587f1b7d9 100644
--- a/htdocs/modulebuilder/template/class/myobject.class.php
+++ b/htdocs/modulebuilder/template/class/myobject.class.php
@@ -774,7 +774,7 @@ class MyObject 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;
}