From b12c474c194fd1d0da6dfc564065eb30168d817d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 8 Aug 2022 12:56:17 -0600 Subject: [PATCH] When using the add button send the destination type in the URL. --- app/destinations/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index 198bf7679b..d9e2307d98 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -202,7 +202,7 @@ echo button::create(['type'=>'button','label'=>$text['button-export'],'icon'=>$_SESSION['theme']['button_icon_export'],'link'=>'destination_download.php']); } if (permission_exists('destination_add')) { - echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','style'=>'margin-left: 15px;','link'=>'destination_edit.php']); + echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'id'=>'btn_add','style'=>'margin-left: 15px;','link'=>'destination_edit.php?type='.urlencode($destination_type)]); } if (permission_exists('destination_delete') && $destinations) { echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'id'=>'btn_delete','name'=>'btn_delete','style'=>'display: none;','onclick'=>"modal_open('modal-delete','btn_delete');"]);