Explorar o código

fixed bug in checkIfTemplatesExist

sou %!s(int64=8) %!d(string=hai) anos
pai
achega
6f2fae0304
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
       });