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 255c08853b
commit 9755c81a5a

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