From b53a1b91129a5939dcfb1da60f6c348b5d83a80c Mon Sep 17 00:00:00 2001 From: Maximilien Rozniecki Date: Tue, 28 Feb 2023 17:02:23 +0100 Subject: [PATCH] NEW only get openned contact from liste_contact function, to not have acces to closed contact as mail receiver --- htdocs/core/tpl/card_presend.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/card_presend.tpl.php b/htdocs/core/tpl/card_presend.tpl.php index 6bf4807ea6f..84febb58e4e 100644 --- a/htdocs/core/tpl/card_presend.tpl.php +++ b/htdocs/core/tpl/card_presend.tpl.php @@ -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';