Parcourir la source

ensure not to include redirect when revert pages

Yuki Takei il y a 5 ans
Parent
commit
25a5f008eb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/server/models/page.js

+ 1 - 1
src/server/models/page.js

@@ -1132,7 +1132,7 @@ module.exports = function(crowi) {
   };
 
   pageSchema.statics.revertDeletedPageRecursively = async function(targetPage, user, options = {}) {
-    const findOpts = { includeRedirect: true, includeTrashed: true };
+    const findOpts = { includeTrashed: true };
     const result = await this.findListWithDescendants(targetPage.path, user, findOpts);
     const pages = result.pages;