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)
committerJacob O'Mara <jacobomara901@gmail.com>
Tue, 9 May 2023 20:33:44 +0000 (21:33 +0100)
commitf58b41460b41cfc034e15baabda1dc1ab5f88b81
treefb44d0bffd05e137a696fdc78e53c55ffe99607e
parent019791238a3cb185f2c8977da3bb38413f69b406
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>
C4/Circulation.pm
C4/Message.pm
Koha/Recall.pm
Koha/Recalls.pm