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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Mar 2023 11:13:33 +0000 (13:13 +0200)
commitf7cfe3a705b4c594e1e9b70c1e7e1ffa0b39a073
treec10e64f1b9a6d72d367ac6681ec6a76d479bfd44
parent92fbb49af7e37f2274bc4f26edb95d57d3819d41
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>
C4/Circulation.pm
C4/Message.pm
Koha/Recall.pm
Koha/Recalls.pm