From 58aae7a4a99d5c9f77c300fc77d66dd7ae2f2607 Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Thu, 11 Nov 2021 19:31:25 +0530 Subject: [PATCH] fix: make GlobalConfig migrated from .env editable from UI (#3360) --- lib/global_config_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/global_config_service.rb b/lib/global_config_service.rb index 6eb700d58..b4561b94b 100644 --- a/lib/global_config_service.rb +++ b/lib/global_config_service.rb @@ -9,7 +9,7 @@ class GlobalConfigService return if config_value.blank? - i = InstallationConfig.where(name: config_key).first_or_create(value: config_value) + i = InstallationConfig.where(name: config_key).first_or_create(value: config_value, locked: false) # To clear a nil value that might have been cached in the previous call GlobalConfig.clear_cache i.value