Don't send duplicates in result

Causes issues in the select where the option cannot be removed once selected
This commit is contained in:
nathan 2023-11-15 15:23:20 -07:00
parent 3673b47e5f
commit c15607d71a

View File

@ -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();
}