From d92961d769636d140665f28d8be1caf2498d115c Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 9 Jun 2023 18:42:16 +0000 Subject: [PATCH] Sofia Global Settings: Fix Copy of disabled record. --- .../resources/classes/sofia_global_settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/sofia_global_settings/resources/classes/sofia_global_settings.php b/app/sofia_global_settings/resources/classes/sofia_global_settings.php index 2123828c2d..289efda183 100644 --- a/app/sofia_global_settings/resources/classes/sofia_global_settings.php +++ b/app/sofia_global_settings/resources/classes/sofia_global_settings.php @@ -219,7 +219,7 @@ if (!class_exists('sofia_global_settings')) { //add copy to the description $array[$this->table][$x][$this->name.'_uuid'] = uuid(); - $array[$this->table][$x]['global_setting_enabled'] = $row['global_setting_enabled']; + $array[$this->table][$x]['global_setting_enabled'] = $row['global_setting_enabled'] === true ? 'true' : 'false'; $array[$this->table][$x][$this->description_field] = trim($row[$this->description_field] ?? '').trim(' ('.$text['label-copy'].')'); //increment the id