From 7f9e98e988b2b0a1b2b92cf62e01aafe12f58031 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 5 May 2015 05:48:27 +0000 Subject: [PATCH] Show only sip profiles that are enabled on the Gateway edit page. --- app/gateways/gateway_edit.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php index 8daad0d4d3..f403cab5b5 100644 --- a/app/gateways/gateway_edit.php +++ b/app/gateways/gateway_edit.php @@ -367,6 +367,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { //get the sip profiles $sql = "select sip_profile_name from v_sip_profiles "; + $sql .= "where sip_profile_enabled = 'true' "; $sql .= "order by sip_profile_name asc "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute();