Merge pull request #24076 from MaximilienR-easya/dev_NEW_dont_get_closed_contact

NEW don't have closed contact proposed as receiver for the mails
This commit is contained in:
Laurent Destailleur 2023-03-02 13:38:25 +01:00 committed by GitHub
commit 124f3f3c21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,7 +328,7 @@ if ($action == 'presend') {
}
$contactarr = array();
$contactarr = $tmpobject->liste_contact(-1, 'external');
$contactarr = $tmpobject->liste_contact(-1, 'external', 0, '', 1);
if (is_array($contactarr) && count($contactarr) > 0) {
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';