Fix boolean in SQL for default and domain setting enabled

Both default_setting_enabled and domain_setting_enabled are booleans in PostgreSQL. For this reason need to use boolean true or false instead of a string.
This commit is contained in:
FusionPBX
2026-01-12 13:14:43 -07:00
committed by GitHub
parent 576c7ada75
commit 7765b5e1ce

View File

@@ -55,7 +55,7 @@
--get the default settings
local sql = "SELECT * FROM v_default_settings ";
sql = sql .. "WHERE default_setting_enabled = 'true' ";
sql = sql .. "WHERE default_setting_enabled = true ";
sql = sql .. "AND default_setting_category is not null ";
sql = sql .. "AND default_setting_subcategory is not null ";
sql = sql .. "AND default_setting_name is not null ";
@@ -99,7 +99,7 @@
if (domain_uuid ~= nil) then
local sql = "SELECT * FROM v_domain_settings ";
sql = sql .. "WHERE domain_uuid = :domain_uuid ";
sql = sql .. "AND domain_setting_enabled = 'true' ";
sql = sql .. "AND domain_setting_enabled = true ";
sql = sql .. "AND domain_setting_category is not null ";
sql = sql .. "AND domain_setting_subcategory is not null ";
sql = sql .. "AND domain_setting_name is not null ";
@@ -159,3 +159,5 @@
--for i, ext in ipairs(array.fax.allowed_extension) do
-- freeswitch.consoleLog("notice", "allowed_extension #" .. i .. ": " .. ext .. "\n");
--end