From ec81d18007a67585b69d97cc6ea894b3355c6fcb Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 30 May 2014 07:30:43 +0000 Subject: [PATCH] On dialplan destinations only show bridge and transfer actions --- app/destinations/destination_edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 9158cb9519..fdea4a4d69 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -289,6 +289,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; $sql .= "and dialplan_uuid = '".$dialplan_uuid."' "; $sql .= "and dialplan_detail_tag = 'action' "; + $sql .= "and (dialplan_detail_type = 'transfer' or dialplan_detail_type = 'bridge') "; $sql .= "order by dialplan_detail_group asc, dialplan_detail_order asc"; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute();