From 4589813d3f87521e10f7fdb05d239e009cc50934 Mon Sep 17 00:00:00 2001 From: Dorian Vabre Date: Fri, 23 Apr 2021 09:46:02 +0200 Subject: [PATCH] added thirdparty fetch before mail sending to get its name --- htdocs/public/payment/paymentok.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php index 681c980a3e8..cdee63c2955 100644 --- a/htdocs/public/payment/paymentok.php +++ b/htdocs/public/payment/paymentok.php @@ -884,6 +884,9 @@ if ($ispaymentok) { $attendeetovalidate->setStatut(1); // Sending mail + $thirdparty = new Societe($db); + $thirdparty->fetch($attendeetovalidate->fk_soc); + require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php'; $formmail = new FormMail($db);