Merge pull request #20892 from atm-greg/Fix_15.0_Fatal_on_holiday_approve_massaction

add missing CMailFile class requirement
This commit is contained in:
Laurent Destailleur 2022-05-20 21:35:33 +02:00 committed by GitHub
commit 432c07ec31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1656,6 +1656,7 @@ if (!$error && ($massaction == 'approveleave' || ($action == 'approveleave' && $
$trackid = 'leav'.$objecttmp->id;
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
$mail = new CMailFile($subject, $emailTo, $emailFrom, $message, array(), array(), array(), '', '', 0, 0, '', '', $trackid);
// Sending email