From c15607d71a1d3d9ff31c518b5131e1dfdbd5284d Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 15 Nov 2023 15:23:20 -0700 Subject: [PATCH] Don't send duplicates in result Causes issues in the select where the option cannot be removed once selected --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index e37df3f223..76270e5c7f 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -3751,7 +3751,7 @@ class mail_compose //error_log(__METHOD__.__LINE__.array2string($jsArray)); header('Content-Type: application/json; charset=utf-8'); - echo json_encode($results); + echo json_encode(array_values(array_unique($results, SORT_REGULAR))); exit(); }