From 04a85ff831c52354e5001e8aa99c1960b6137cba Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 8 Apr 2016 16:06:50 +0200 Subject: [PATCH] FIX Substitution key on email of supplier order was broken --- htdocs/fourn/commande/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index bee01a45cf4..434d5d632fc 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -2487,7 +2487,7 @@ elseif (! empty($object->id)) $formmail->withto=GETPOST("sendto")?GETPOST("sendto"):$liste; $formmail->withtocc=$liste; $formmail->withtoccc=(! empty($conf->global->MAIN_EMAIL_USECCC)?$conf->global->MAIN_EMAIL_USECCC:false); - $formmail->withtopic=$outputlangs->trans('SendOrderRef','__ORDERREF__'); + $formmail->withtopic=$outputlangs->trans('SendOrderRef','__REF__'); $formmail->withfile=2; $formmail->withbody=1; $formmail->withdeliveryreceipt=1; @@ -2496,6 +2496,7 @@ elseif (! empty($object->id)) $object->fetch_projet(); // Tableau des substitutions $formmail->setSubstitFromObject($object); + $formmail->substit['__ORDERREF__']=$object->ref; // For backward compatibility $formmail->substit['__ORDERSUPPLIERREF__']=$object->ref_supplier; // For backward compatibility $formmail->substit['__SUPPLIERORDERREF__']=$object->ref_supplier;