]> git.koha-community.org Git - koha.git/commit
Bug 12532: Send email to guarantee and guarantor
authorHammat Wele <hammat.wele@inlibro.com>
Wed, 26 Apr 2023 15:02:02 +0000 (15:02 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Oct 2023 12:58:46 +0000 (09:58 -0300)
commitdc629ea7b5775a3cad92e18cc170c576bbaf58a3
tree9d661b824438aaa6905d68cad83b85267a0ab686
parent101eabfd9dd332647e76698f379cd13e24454381
Bug 12532: Send email to guarantee and guarantor

This patch allows guarantors to receive emails sended to their
guarentees. This patch is a rebase of the previous patches.
I took all the content of previous commit and put it in one commit.

TO TEST:

Before applying:
1) Search, or create, a patron with guarantor.
2) For both guarantors and guarantees:
   - Add an email address
   - Update the 'Patron messaging preferences' section so that an email is sent for item checkouts
3) Checkout an item. An email should be sent only to the guarantee.
4) Apply the patch.
5) Run updatedatabase.pl
6) Run prove t/db_dependent/Members.t and prove t/db_dependent/Letters.t
7) Enable 'RedirectGuaranteeEmail'
8) Run misc/cronjobs/process_message_queue.pl
9) Notice that the email should be sended to both the guarantee AND the
guarantor.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Letters.pm
Koha/Email.pm
Koha/Patron.pm
installer/data/mysql/atomicupdate/bug_12532-RedirectGuaranteeEmail_syspref.pl [new file with mode: 0755]
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref
t/db_dependent/Letters.t
t/db_dependent/Members.t