NEW only get openned contact from liste_contact function, to not have acces to closed contact as mail receiver

This commit is contained in:
Maximilien Rozniecki 2023-02-28 17:02:23 +01:00
parent 49a403b4a5
commit b53a1b9112

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';