Browse Source

BugFix: the part of generating config obj

* ensure to be override config values even if type of value is boolean
Yuki Takei 9 năm trước cách đây
mục cha
commit
fdfa289690
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/models/config.js

+ 1 - 1
lib/models/config.js

@@ -110,7 +110,7 @@ module.exports = function(crowi) {
       defaultConfig[ns] = {};
     }
     Object.keys(config[ns] || {}).forEach(function (key) {
-      if (config[ns][key]) {
+      if (config[ns][key] !== undefined) {
         defaultConfig[key] = config[ns][key];
       }
     });