fix : method was undefined and attached files was nok

This commit is contained in:
Philippe GRAND 2022-05-18 11:39:47 +02:00
parent 8c62363ad1
commit e0c3fa79cb

View File

@ -1267,7 +1267,7 @@ class FormTicket
if (GETPOST('mode', 'alpha') == 'init' || (GETPOST('modelmailselected', 'alpha') && GETPOST('modelmailselected', 'alpha') != '-1')) {
if (!empty($arraydefaultmessage->joinfiles) && is_array($this->param['fileinit'])) {
foreach ($this->param['fileinit'] as $file) {
$this->add_attached_files($file, basename($file), dol_mimetype($file));
$formmail->add_attached_files($file, basename($file), dol_mimetype($file));
}
}
}