From 34e4ea9ca37a70c6f22cc79b9dddde4bd13f0d96 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 21 Jan 2022 02:07:42 -0700 Subject: [PATCH] Allow the toggle enabled across all gateways using the Show All button. --- app/gateways/resources/classes/gateways.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/gateways/resources/classes/gateways.php b/app/gateways/resources/classes/gateways.php index d0aec16895..32bc353349 100644 --- a/app/gateways/resources/classes/gateways.php +++ b/app/gateways/resources/classes/gateways.php @@ -379,9 +379,7 @@ if (!class_exists('gateways')) { } if (is_array($uuids) && @sizeof($uuids) != 0) { $sql = "select ".$this->uuid_prefix."uuid as uuid, ".$this->toggle_field." as state, gateway, profile from v_".$this->table." "; - $sql .= "where (domain_uuid = :domain_uuid ".(permission_exists('gateway_domain') ? " or domain_uuid is null " : null).") "; - $sql .= "and ".$this->uuid_prefix."uuid in (".implode(', ', $uuids).") "; - $parameters['domain_uuid'] = $_SESSION['domain_uuid']; + $sql .= "where ".$this->uuid_prefix."uuid in (".implode(', ', $uuids).") "; $database = new database; $rows = $database->select($sql, $parameters, 'all'); if (is_array($rows) && @sizeof($rows) != 0) {