https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20076

--- Comment #1 from Victor Grousset/tuxayo <victor.grous...@biblibre.com> ---
Created attachment 70846
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70846&action=edit
Bug 20076: Overdues: remove redundant message when patrons don't have email
addresses

When running overdue_notices.pl, one email message is sent to the
library containing all the print versions of the related notices.
But since a past enhancement, one message of the type print also is
created for each of such notices.
So now we have two print overdue notice generations.
Which is why the email message is not longer relevant as it's superseded
by the individual and ready to print messages.

Test plan
1. Check the size of the message queue
     With the following SQL query (using an SQL report if you want)
     SELECT COUNT(*) FROM message_queue;
2. Run misc/cronjobs/overdue_notices.pl
3. Check the size of the message queue
     To ensure that no other overdues will create noise in this test plan.
     Or you can take them into account.
4. Choose a patron with no email address
5. Create an overdue (checkout an item and unfold "Checkout settings"
   and set a date in the past which is compatible with what you find in
   staff:/cgi-bin/koha/tools/overduerules.pl
6. Run misc/cronjobs/overdue_notices.pl
7. Check that you have two new messages in the queue
8. Inspect these two messages
   SELECT * FROM message_queue ORDER BY time_queued DESC LIMIT 2 \G
   1. One has the type "print" and the borrowernumber matching the patron.
   2. The other has
        subject: Overdue Notices
        borrowernumber: NULL
        message_transport_type: email
        and contains "These messages were not sent directly to the patrons."
        This is the one we don't want anymore.
        Because it's now obsolete due to the first message.
9. Apply this patch
10. Run misc/cronjobs/overdue_notices.pl
11. Check that only the print message is now generated and not the
      "Overdue Notices" one.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to