takeru0001 hace 5 años
padre
commit
37920e61da
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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.
    */
   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);
 
@@ -581,7 +581,7 @@ module.exports = (crowi) => {
 
     let result;
 
-    if (isRecursively) {
+    if (isDuplicateRecursively) {
       result = await duplicatePageRecursively(page, newPagePath, req.user);
     }
     else {