Procházet zdrojové kódy

fixed bug in checkIfTemplatesExist

sou před 8 roky
rodič
revize
6f2fae0304
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
       });