Skip to content

Editor permissions enable the "Copy Page" button but it does not work #321

@abea

Description

@abea

To Reproduce

Step by step instructions to reproduce the behavior:

  1. Add an "editor" user group and set up basic edit permissions. Make sure the editor group can edit all pages via the page settings.

Screen Shot 2020-06-22 at 1 59 00 PM

  1. As an "editor," open the context menu and click Copy Page. It should open a new page modal. Update the title and click save

Expected behavior

It should save the copied page and leave you on that new page ready to edit it.

Describe the bug

The process gets stuck with the "busy" spinner running and Apostrophe throws an error the browser console:

Uncaught TypeError: can't access property "_id", self.savedPage is undefined
    afterSave http://localhost:3000/modules/apostrophe-workflow-pages/js/editor.js:71
    method http://localhost:3000/modules/apostrophe-pages/js/editor.js:140
    afterSave http://localhost:3000/modules/apostrophe-pages/js/editor.js:137
    ...

Details

Version of Node.js: 12.x

Server Operating System: MacOS

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions