mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 02:46:30 +00:00
[extensions] outbound caller id select list remove duplicates (#5977)
This commit is contained in:
@@ -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 " <option value='".escape($tmp)."' selected='selected'>".escape($tmp)."</option>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user