From b4beae1e97210815147f5eb15d84d24187edd45c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 10 Jul 2020 09:45:54 -0600 Subject: [PATCH] Cast domain_enabled to text --- core/domains/domain_edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/domains/domain_edit.php b/core/domains/domain_edit.php index 6a286a9e2e..4c99d3ef57 100644 --- a/core/domains/domain_edit.php +++ b/core/domains/domain_edit.php @@ -528,7 +528,8 @@ //pre-populate the form (admin won't have domain_add permissions, but domain_uuid will already be set above) if ((count($_GET) > 0 || (!permission_exists('domain_add') && $domain_uuid != '')) && $_POST["persistformvar"] != "true") { - $sql = "select * from v_domains "; + $sql = "select domain_uuid, domain_name, cast(domain_enabled as text), domain_description "; + $sql .= "from v_domains "; $sql .= "where domain_uuid = :domain_uuid "; $parameters['domain_uuid'] = $domain_uuid; $database = new database; @@ -698,4 +699,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>