takeru0001 5 vuotta sitten
vanhempi
sitoutus
37920e61da
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/server/routes/apiv3/pages.js

+ 2 - 2
src/server/routes/apiv3/pages.js

@@ -560,7 +560,7 @@ module.exports = (crowi) => {
    *            description: Internal server error.
    *            description: Internal server error.
    */
    */
   router.post('/duplicate', accessTokenParser, loginRequiredStrictly, csrf, validator.duplicatePage, apiV3FormValidator, async(req, res) => {
   router.post('/duplicate', accessTokenParser, loginRequiredStrictly, csrf, validator.duplicatePage, apiV3FormValidator, async(req, res) => {
-    const { pageId, isRecursively } = req.body;
+    const { pageId, isDuplicateRecursively } = req.body;
 
 
     const newPagePath = pathUtils.normalizePath(req.body.pageNameInput);
     const newPagePath = pathUtils.normalizePath(req.body.pageNameInput);
 
 
@@ -581,7 +581,7 @@ module.exports = (crowi) => {
 
 
     let result;
     let result;
 
 
-    if (isRecursively) {
+    if (isDuplicateRecursively) {
       result = await duplicatePageRecursively(page, newPagePath, req.user);
       result = await duplicatePageRecursively(page, newPagePath, req.user);
     }
     }
     else {
     else {