takeru0001 5 лет назад
Родитель
Сommit
37920e61da
1 измененных файлов с 2 добавлено и 2 удалено
  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 {