소스 검색

BugFix: the part of generating config obj

* ensure to be override config values even if type of value is boolean
Yuki Takei 9 년 전
부모
커밋
fdfa289690
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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];
       }
     });