From cd24808bbfed4599c4f28a3a7ea1ca73d7b32649 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Thu, 4 Sep 2025 17:54:29 +0200 Subject: [PATCH] Fix label of tooltip not complete --- htdocs/commande/class/commande.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 531b9910119..9a9a5fff484 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3738,6 +3738,7 @@ class Commande extends CommonOrder if (empty($donotshowbilled)) { $billedtext .= ($billed ? ' - '.$langs->transnoentitiesnoconv("Billed") : ''); } + $billedtextlong = ($billed ? ' - '.$langs->transnoentitiesnoconv("Billed") : ''); $labelTooltip = ''; @@ -3750,11 +3751,11 @@ class Commande extends CommonOrder $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderDraftShort'); $statusType = 'status0'; } elseif ($status == self::STATUS_VALIDATED) { - $labelStatus = $langs->transnoentitiesnoconv('StatusOrderValidated').$billedtext; + $labelStatus = $langs->transnoentitiesnoconv('StatusOrderValidated').$billedtextlong; $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderValidatedShort').$billedtext; $statusType = 'status1'; } elseif ($status == self::STATUS_SHIPMENTONPROCESS) { - $labelStatus = $langs->transnoentitiesnoconv('StatusOrderSent').$billedtext; + $labelStatus = $langs->transnoentitiesnoconv('StatusOrderSent').$billedtextlong; $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderSentShort').$billedtext; $labelTooltip = $langs->transnoentitiesnoconv("StatusOrderSent"); if (!empty($this->delivery_date)) { @@ -3762,7 +3763,7 @@ class Commande extends CommonOrder } $statusType = 'status4'; } elseif ($status == self::STATUS_CLOSED) { - $labelStatus = $langs->transnoentitiesnoconv('StatusOrderDelivered').$billedtext; + $labelStatus = $langs->transnoentitiesnoconv('StatusOrderDelivered').$billedtextlong; $labelStatusShort = $langs->transnoentitiesnoconv('StatusOrderDeliveredShort').$billedtext; $statusType = 'status6'; } else {