Bug 24164: Copy the letter for each email
authorNick Clemens <nick@bywatersolutions.com>
Tue, 3 Dec 2019 19:55:19 +0000 (19:55 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 13 Dec 2019 14:01:01 +0000 (14:01 +0000)
commit76cd9cd7e75539954e9840ed4f688285e566004a
tree45ff8ea9f869b2ee5d2c868bf5268e1e1a6850ed
parent3a00e676dc04f0b721c5c318b5006001fb16b6e6
Bug 24164: Copy the letter for each email

To test:
1 - Set or have two patrons with emails - note thier borrowernumber for the report
2 - Create a report - note the report id ($REPORT_ID)
SELECT borrowernumber, surname, firstname, email FROM borrowers WHERE borrowernumber IN (##,##);
3 - Create a notice in circulation with code TESTEMAIL
4 - The content should be "[% surname %]"
5 - perl misc/cronjobs/patron_emailer.pl --report $REPORT_ID --notice TESTEMAIL --module circulation --from anyone@anywhere.com --verbose
6 - Note that the emails both have the same surname
7 - Apply patch
8 - Repeat 5
9 - Emails now have correct content

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>
Signed-off-by: Jessica Zairo <jzairo@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Reports/Guided.pm