[Koha-bugs] [Bug 17470] overdue_notices.pl produces X emails with the SAME list of ALL overdue items if a patron has overdue items from X branches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 25 12:34:33 CET 2016


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

--- Comment #6 from Koha Team Lyon 3 <koha at univ-lyon3.fr> ---
Test plan 

0/ Have (or create) at least two branches B1 and B2
1/ Make sure you're logged in with an account belonging to B1, or switch to
branch B1
2/ checkout item I1 (belonging to B1) to patron P  while specifying a due date
< today)
3/ switch to branch B2
4/ checkout item I2 (belonging to B2) to patron P  while specifying a due date
< today)
5/ make sure you have defined "Overdue notice/status triggers" for that patron
category, ie with Delay=1 so that "Overdue Notice" is selected and "Email" is
checked.
6/ from cli run 'perl ./misc/cronjobs/overdue_notices.pl' 
7/ two new entries will be generated in message_queue DB table, coming from
different branches that have the SAME list of overdue items
8/ either see the 'content' field in these entries, or run 'perl
./cronjobs/process_message_queue.pl' to receive the actual emails (provided the
email is properly setup)
9) run again overdue_notices.pl with library option for both B1 and B2 (you
must give the branchcode as parameter) like this :
./overdue_notices.pl -t -library B1branchcode -library B2branchcode 
10) see again that the generated messages have the same list of overdue items

11) apply the patch
12) run again the script first without library option and secondly with it : in
both cases, 2 messages will be created. One from B1 claiming the B1 item,
another from B2 claiming the B2 item.

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


More information about the Koha-bugs mailing list