Summary: | Resend notices in Notices tab with AJAX + REST | ||
---|---|---|---|
Product: | Koha | Reporter: | Lari Taskula <lari.taskula> |
Component: | Notices | Assignee: | Lari Taskula <lari.taskula> |
Status: | BLOCKED --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | cbrannon, jdemuth, jonathan.druart, severine.queune, viktor.sarge |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32137 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Bug Depends on: | 14843, 12426 | ||
Bug Blocks: | |||
Attachments: | Bug 14855: Resend notices in Notices tab with AJAX + REST |
Description
Lari Taskula
2015-09-18 14:41:27 UTC
Created attachment 42717 [details] [review] Bug 14855: Resend notices in Notices tab with AJAX + REST Bug 12426 introduces a resend link to resend sent and failed messages. It uses POST method. Since Bug 14843 gives us REST API for notifications, we should enhance 12426 to use REST API via AJAX and only allow Staff members with permission "resend_message" to be able to see the link and use it. This patch changes the request into AJAX POST via the REST API for notifications. To test: -3. Make sure you have all the dependant patches -2. Enable system preference EnhancedMessagingPreferences -1. Make sure you do not have permission messages -> resend_message -0. To view Notices without superlibrarian permission, you need - borrowers -> view_borrowers - catalogue -> staff_login To test: 1. Have/create some pending sms messages into message_queue 2. Go to Patrons -> Notices 3. Resend one of the message and observe the page will reload 4. Apply patch 5. Reload Patrons -> Notices and observe there is no Resend link 6. Add yourself the permission messages -> resend_message 7. Reload Patrons -> Notices and observe there is Resend link 8. Resend a message and observe page will not reload 9. Observe that the message status has changed to pending |