NEW const MAIL_MASS_ACTION_ADD_LAST_IF_MAIN_DOC_NOT_FOUND for mailing mass action

This commit is contained in:
lvessiller 2022-05-02 10:50:48 +02:00
parent 2992b3e845
commit bcc645ce38

View File

@ -322,7 +322,7 @@ if (!$error && $massaction == 'confirm_presend') {
'name' => $filename,
'path' => $filepath,
);
if (!empty($objectobj->last_main_doc)) {
if (!empty($conf->global->MAIL_MASS_ACTION_ADD_LAST_IF_MAIN_DOC_NOT_FOUND) && !empty($objectobj->last_main_doc)) {
$file_check_list[] = array(
'name' => basename($objectobj->last_main_doc),
'path' => DOL_DATA_ROOT . '/' . $objectobj->last_main_doc,