Merge branch 'dev_NEW_dont_send_ticket_mail_to_closed_contact' of github.com:MaximilienR-easya/dolibarr into dev_NEW_dont_send_ticket_mail_to_closed_contact

This commit is contained in:
Maximilien Rozniecki 2023-03-01 16:56:18 +01:00
commit 4a6692b899

View File

@ -3055,7 +3055,7 @@ class Ticket extends CommonObject
$non_closed_contacts[] = $this->db->fetch_row($resql);
}
}
$to = array_filter($to, function($v, $k) use($non_closed_contacts, $langs) {
$to = array_filter($to, function ($v, $k) use ($non_closed_contacts, $langs) {
foreach ($non_closed_contacts as $non_closed_contact) {
if ($k == $non_closed_contact[0])
return true;