Bug 19496: [17.05.x] Fixing to_address for patron notes
authorAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 27 Nov 2017 21:33:58 +0000 (21:33 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 9 Jan 2018 12:25:15 +0000 (13:25 +0100)
commit7923eed3f83b4eeb1fe5470dd74a90cc20f782b5
tree722572eff1eb25c755cce09143053d7e0345cd89
parent65dd258ca94a37376435d543881ab0d7d54e5c91
Bug 19496: [17.05.x] Fixing to_address for patron notes

This patch ensures the patron note to_address is the branch email or the
Koha Admin email, and the from_address is the patron's email.

To test:
1) Ensure syspref 'allowcheckoutnotes' is turned on
2) Go to OPAC, leave a note on a checkout
3) Confirm that the note is received (in mysql message_queue) but the
to_address is the patron's email - this is wrong
4) Apply patch and refresh OPAC
5) Leave a note on a checkout
6) Confirm that the note is received in message queue
7) Confirm that the to_address is one of:
- branch email
- branch reply to
- syspref ReplytoDefault
- syspref KohaAdminEmailAddress
8) Confirm that the from_address is one of:
- patron email
- patron emailpro
- patron B_email

Sponsored-by: Catalyst IT
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-issue-note.pl
opac/svc/patron_notes