]> git.koha-community.org Git - koha.git/commit
Bug 3203: ACCTDETAIL notices don't parse branches or borrowers tokens
authorIan Walls <ian.walls@bywatersolutions.com>
Sun, 27 Mar 2011 17:05:48 +0000 (13:05 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Mon, 4 Apr 2011 23:59:47 +0000 (19:59 -0400)
commit59cf6186358151965fb3efde6e2baa9b0ff9292b
treea60c70ba692f28f5b0d1b8d47a45f6cd6bc5e3ba
parent5cea7643c9e2f8ad578a71d09c0dc88060e91ed2
Bug 3203: ACCTDETAIL notices don't parse branches or borrowers tokens

This patch enables the ACCTDETAIL notices (and any branch-specific derivatives) to use
<<branches.*>> and <<borrowers.*>> tokens

This patch also attempts to send the email from the branch email first, falling back to
KohaAdminEmailAddress if no branch email exists.

To test:

1. Enable AutoEmailOpacUser system preference
2. Add <<branches.*>> tokens to the ACCTDETAIL notice
3. Create a new patron, including:
   a. test email address in the field matching your AutoEmailPrimaryAddress syspref value
   b. username and password (required to send a notice)
   c. any other required fields to save the record
4. Check you inbox.  Notice should send instantly (no need to run process_message_queue.pl)

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 1d6f791541686dfa409843f8f5b1624f1be6e8cb)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Letters.pm
members/memberentry.pl