From 716daf2f17adfcd1155617bc8ce1927efdd6432d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 29 Apr 2014 17:32:50 +0000 Subject: [PATCH] show global dialplans --- app/dialplan/dialplans.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dialplan/dialplans.php b/app/dialplan/dialplans.php index 27b5733f78..2a4ef3aaf0 100644 --- a/app/dialplan/dialplans.php +++ b/app/dialplan/dialplans.php @@ -153,7 +153,7 @@ else { //get the number of rows in the dialplan $sql = "select count(*) as num_rows from v_dialplans "; - $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "where (domain_uuid = '$domain_uuid' or domain_uuid is null) "; if (strlen($app_uuid) == 0) { //hide inbound routes $sql .= "and app_uuid <> 'c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4' "; @@ -185,7 +185,7 @@ else { $offset = $rows_per_page * $page; $sql = "select * from v_dialplans "; - $sql .= "where domain_uuid = '$domain_uuid' "; + $sql .= "where (domain_uuid = '$domain_uuid' or domain_uuid is null) "; if (strlen($app_uuid) == 0) { //hide inbound routes $sql .= "and app_uuid <> 'c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4' ";