Bug 18398: Update C4::Message enqueue to use $patron->notice_email_address
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Mar 2023 10:02:19 +0000 (10:02 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 15 May 2023 14:33:33 +0000 (14:33 +0000)
commita21b9cea4dcff2b82de76a36a254100babedc469
tree13c2eb62fbee9c0d24e9fa73582622023b148b45
parentf849dd313cde6dfdd03aba5652fb9429f093c901
Bug 18398: Update C4::Message enqueue to use $patron->notice_email_address

This patch updates the enque method in C4::Message to expect a
Koha::Patron object in the parameters and then uses that patron object
to select the correct email address for notices as defined by
AutoEmailPrimaryAddress.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f7cfe3a705b4c594e1e9b70c1e7e1ffa0b39a073)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
(cherry picked from commit f58b41460b41cfc034e15baabda1dc1ab5f88b81)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Circulation.pm
C4/Message.pm
Koha/Recall.pm
Koha/Recalls.pm