From 12fba9e6795e4ec5091bba6a4fdfebc77cb2cc69 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Sep 2020 15:19:12 +0200 Subject: [PATCH] Fix label --- htdocs/core/class/commonobject.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 2396ecb808e..e0a2d278654 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -3893,6 +3893,7 @@ abstract class CommonObject { // phpcs:enable $out = ''; + $this->label_incoterms = ''; if (!empty($this->fk_incoterms)) { @@ -3905,7 +3906,7 @@ abstract class CommonObject } } - $out .= (($res->code && $this->location_incoterms) ? ' - ' : '').$this->location_incoterms; + $out .= (($out && $this->location_incoterms) ? ' - ' : '').$this->location_incoterms; return $out; }