From 75c0531b36f9cb23ecdb29552e31f8e1377c5c7e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 4 Apr 2026 22:13:22 +0000 Subject: [PATCH] Add type to the search --- app/streams/stream_map.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/streams/stream_map.php b/app/streams/stream_map.php index 1398c0897..11021eef3 100644 --- a/app/streams/stream_map.php +++ b/app/streams/stream_map.php @@ -93,7 +93,7 @@ $excluded_applications = implode(',', $excluded_app_array); //get the stream map - $sql = "select "; + $sql = "SELECT "; $sql .= " application, "; $sql .= " type, "; $sql .= " uuid, "; @@ -103,18 +103,19 @@ $sql .= " number, "; $sql .= " music, "; $sql .= " description \n"; - $sql .= "from view_stream_map \n"; - $sql .= "where true \n"; + $sql .= "FROM view_stream_map \n"; + $sql .= "WHERE true \n"; if (!empty($show) && $show === "all" && permission_exists('dialplan_all')) { //show all } else { - $sql .= "and domain_uuid = :domain_uuid \n"; + $sql .= "AND domain_uuid = :domain_uuid \n"; $parameters['domain_uuid'] = $domain_uuid; } if (!empty($search)) { - $sql .= "and ( \n"; + $sql .= "AND ( \n"; $sql .= " application like :search \n"; + $sql .= " or type like :search \n"; $sql .= " or name like :search \n"; $sql .= " or number like :search \n"; $sql .= " or music like :search \n";