소스 검색

fixed bug in checkIfTemplatesExist

sou 8 년 전
부모
커밋
6f2fae0304
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/models/page.js

+ 1 - 1
lib/models/page.js

@@ -541,7 +541,7 @@ module.exports = function(crowi) {
       .find({path: {$in: regexpList}})
       .then(templates => {
         templateInfo.childrenTemplateExists = (assignTemplateByType(templates, path, '_') ? true : false);
-        templateInfo.decendantsTemplateExists = (assignDecendantsTemplate(templates, path) ? true : false);
+        templateInfo.decendantsTemplateExists = (assignTemplateByType(templates, path, '__') ? true : false);
 
         return templateInfo;
       });