From 814f07d316c254eac32df23e5d4b6fc800433343 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 14 Sep 2020 04:11:12 +0200 Subject: [PATCH] Missing picto property --- htdocs/livraison/class/livraison.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/livraison/class/livraison.class.php b/htdocs/livraison/class/livraison.class.php index 9910855f463..c612dbf6fe2 100644 --- a/htdocs/livraison/class/livraison.class.php +++ b/htdocs/livraison/class/livraison.class.php @@ -59,6 +59,11 @@ class Livraison extends CommonObject */ public $table_element_line = "livraisondet"; + /** + * @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png + */ + public $picto = 'sending'; + public $brouillon; public $socid; public $ref_customer; @@ -716,7 +721,6 @@ class Livraison extends CommonObject global $langs; $result = ''; - $picto = 'sending'; $label = img_picto('', $this->picto).' '.$langs->trans("ShowReceiving").':
'; $label .= ''.$langs->trans("Status").': '.$this->ref; @@ -735,7 +739,7 @@ class Livraison extends CommonObject $linkstart = ''; $linkend = ''; - if ($withpicto) $result .= ($linkstart.img_object($label, $picto, 'class="classfortooltip"').$linkend); + if ($withpicto) $result .= ($linkstart.img_object($label, $this->picto, 'class="classfortooltip"').$linkend); if ($withpicto && $withpicto != 2) $result .= ' '; $result .= $linkstart.$this->ref.$linkend; return $result;