added thirdparty fetch before mail sending to get its name

This commit is contained in:
Dorian Vabre 2021-04-23 09:46:02 +02:00
parent f832434ce3
commit 4589813d3f

View File

@ -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);