|
|
@@ -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 {
|