[Koha-bugs] [Bug 14855] Resend notices in Notices tab with AJAX + REST

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 21 12:55:52 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14855

--- Comment #1 from Lari Taskula <larit at student.uef.fi> ---
Created attachment 42717
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=42717&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list