apostrophe-workflow
apostrophe-workflow copied to clipboard
Editor permissions enable the "Copy Page" button but it does not work
To Reproduce
Step by step instructions to reproduce the behavior:
- Add an "editor" user group and set up basic edit permissions. Make sure the editor group can edit all pages via the page settings.
- 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
Do we know that this bug doesn't exist in core apostrophe with a similar setup of permissions?
On Mon, Jun 22, 2020 at 3:03 PM Alex Bea [email protected] wrote:
To Reproduce
Step by step instructions to reproduce the behavior:
- Add an "editor" user group and set up basic edit permissions. Make sure the editor group can edit all pages via the page settings.
[image: Screen Shot 2020-06-22 at 1 59 00 PM] https://user-images.githubusercontent.com/1155984/85325021-881b4400-b490-11ea-8d71-d001f9475cb6.png
- 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
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe-workflow/issues/321, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH27OXS2K7TEQL7B6LONDRX6TJVANCNFSM4OE6N2OA .
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his