Sfoglia il codice sorgente

ensure not to include redirect when revert pages

Yuki Takei 5 anni fa
parent
commit
25a5f008eb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;