From 64afa5df3649c778e56511c9245c9b775bf4782b Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Tue, 22 Jun 2021 16:46:34 -0400 Subject: [PATCH] [extensions] outbound caller id select list remove duplicates (#5977) --- app/extensions/extension_edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index d4fa9d587e..3d5f51543e 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -1301,9 +1301,10 @@ foreach ($destinations as &$row) { $tmp = $row["destination_caller_id_name"]; if(strlen($tmp) == 0){ - $tmp = $row["destination_description"]; + // $tmp = $row["destination_description"]; } - if(strlen($tmp) > 0){ + if(strlen($tmp) > 0 && !in_array($tmp, $in_list)){ + $in_list[] = $tmp; if ($outbound_caller_id_name == $tmp) { echo " \n"; }