Koha-clms/C4
Ian Walls 59cf618635 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 1d6f791541)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-04-04 19:59:47 -04:00
..
AuthoritiesMarc Bug 5385: POD Cleanups (part 1) 2010-11-11 19:48:14 -05:00
Barcodes Bug 5385 - Fixing an error that crept in with the POD cleanup 2010-11-11 19:48:15 -05:00
Cache Bug 5385: POD Cleanups (part 1) 2010-11-11 19:48:14 -05:00
ClassSortRoutine replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Creators bug 4306: respect item-level_itypes when displaying item label batches 2011-02-13 21:44:19 -05:00
External Bug 5385: POD Cleanups (part 1) 2010-11-11 19:48:14 -05:00
Form Bug 5889: Messages name in english for notifications on public interface. 2011-03-23 12:27:17 -04:00
Heading Bug 5385: POD Cleanups (part 1) 2010-11-11 19:48:14 -05:00
ILSDI Bug 5450 Avoid a name clash in ILSDI modules 2010-11-30 16:24:42 -05:00
Installer bug 5389: mark Business::ISBN as a required dependency 2010-11-11 20:46:08 -05:00
Labels fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Members Bug 5595 : Fixing a security glitch (please always use placeholders or 2011-03-14 14:04:19 -04:00
Output Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Patroncards fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Reports Bug 5385: POD Cleanups (part 1) 2010-11-11 19:48:14 -05:00
SIP Bug 5601 Fix processing of DueDate return 2011-01-12 13:42:20 -05:00
Search Bug 5385: POD Cleanups (part 1) 2010-11-11 19:48:14 -05:00
VirtualShelves Fix for Bug 3347 - Inconsistencies with tables in opac-shelves.tmpl 2011-01-06 14:12:57 -05:00
tests Bug 2505 - Add commented use warnings where missing in the C4/ directory 2010-04-21 20:25:32 +12:00
Accounts.pm fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00
Acquisition.pm (bug #3737) fix title search in order history 2011-01-10 15:06:06 -05:00
Auth.pm Bug 5390: OPAC loses library selection 2011-03-22 18:07:04 -04:00
Auth_with_cas.pm MT3186: Remove warnings from Auth_with_cas 2010-04-23 06:55:13 -04:00
Auth_with_ldap.pm bug 4256: fix patron replication when using LDAP with auth_by_bind 2010-04-30 17:05:38 -04:00
AuthoritiesMarc.pm Bug 5909 : SetUTF8Flag on any incoming data 2011-03-23 12:31:41 -04:00
BackgroundJob.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Barcodes.pm Bug 5681: Fixes leading zeroes in Add Mulpiple Copies 2011-02-02 17:10:05 -05:00
Biblio.pm Bug 5883 : Prevent re-encoding the items if they are already in UTF-8 in ModBiblio. 2011-04-04 19:45:16 -04:00
Bookseller.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Boolean.pm Bug 5448: Refactor Boolean.pm 2010-12-01 16:54:52 -05:00
Branch.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Breeding.pm Fix for Bug 4290 - search for author in repository 2011-03-05 19:37:22 -05:00
Budgets.pm Bug 5084 - hide funds that are part of an inactive budget 2010-12-14 21:40:46 -05:00
Cache.pm Bug 5363 - Removing unused module (C4::Cache::FastMemcached) 2010-11-04 19:17:19 -04:00
Calendar.pm Fix for Bug 4991, Overhaul of Calendar interface 2010-11-02 22:11:38 -04:00
Category.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Charset.pm NormalizeString POD Fixing and variable renaming 2011-02-21 12:35:08 -05:00
Circulation.pm Fix for Bug 4946 - hold warning needs rewording 2010-12-23 23:17:03 -05:00
ClassSortRoutine.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
ClassSource.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Context.pm remove old revision history notes from a couple files 2010-06-25 05:18:44 -04:00
Contract.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Creators.pm Fix some compile time errors reported in test suite 2010-12-01 16:55:44 -05:00
Csv.pm Bug 2505 - Add commented use warnings where missing in *.pm 2010-04-21 20:28:51 +12:00
Dates.pm Dates : improvements string recognition 2010-01-28 15:11:47 +01:00
Debug.pm More POD cleanups 2010-06-09 08:38:58 -04:00
Heading.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
ImportBatch.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Input.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Installer.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
ItemCirculationAlertPreference.pm POD Cleanups 2010-06-09 08:38:59 -04:00
ItemType.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Items.pm Bug 4263: Remove duplicated lines from C4::Items 2011-02-13 21:38:54 -05:00
Koha.pm Bug 5403 Remove DisplayISBN and GetPublisherNameFromIsbn 2011-01-17 17:52:59 -05:00
Labels.pm Bringing label, patroncard, and creator modules into conformity with the rest of C4 style. 2010-02-08 20:54:34 -05:00
Languages.pm bug 4188: move PDF templates for printed purchase orders 2010-07-02 08:49:44 -04:00
Letters.pm Bug 3203: ACCTDETAIL notices don't parse branches or borrowers tokens 2011-04-04 19:59:47 -04:00
Log.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Maintainance.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Matcher.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Members.pm Bug 5595: (MT #5757)adding additional attributes support on patrons's search 2011-03-12 16:27:42 -05:00
Message.pm POD Cleanups 2010-06-09 08:38:59 -04:00
NewsChannels.pm Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Output.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Overdues.pm Bug 3341: Fines calculation erroneous when a repeatable holiday is added 2011-03-05 19:37:11 -05:00
Patroncards.pm Fix some compile time errors reported in test suite 2010-12-01 16:55:44 -05:00
Print.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Record.pm remove two disused functions 2010-10-21 20:31:51 -04:00
Reports.pm More POD cleanups 2010-06-09 08:38:58 -04:00
Reserves.pm Bug 3595 (partial): Items seen at checkin are not filling holds well 2011-03-22 17:21:28 -04:00
Review.pm Fix FSF address in directory C4/ 2010-03-16 20:17:56 -04:00
Ris.pm remove a bunch of unconditional debug warns 2010-07-02 10:57:08 -04:00
RotatingCollections.pm Fix some compile time errors reported in test suite 2010-12-01 16:55:44 -05:00
SMS.pm More POD cleanups 2010-06-09 08:38:58 -04:00
SQLHelper.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Scheduler.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Scrubber.pm Bug 5611: Simple typo fix in the comments 2011-01-12 15:43:05 -05:00
Search.pm Bug 5960 : Itemtype icons not showing correctly in staff search results 2011-04-04 19:59:30 -04:00
Serials.pm bug 1953: Reduce risk of possible tainted supplierid call to C4::Serials::GetLateIssues 2011-02-28 09:51:22 -05:00
Service.pm POD Cleanups 2010-06-09 08:38:59 -04:00
Stats.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Suggestions.pm Bug 5589: Remove duplicated Exports in Suggestions.pm 2011-01-10 14:44:22 -05:00
Tags.pm More POD cleanups 2010-06-09 08:38:58 -04:00
UploadedFile.pm replace references to defunct info email address 2010-06-25 05:18:44 -04:00
Utils.pm Big LDAP changes, module test for Context.pm, still more yet to come. 2007-12-04 17:27:06 -06:00
VirtualShelves.pm Fix for Bug 3347 - Inconsistencies with tables in opac-shelves.tmpl 2011-01-06 14:12:57 -05:00
XISBN.pm Fix for Bug 5570 - item types not showing on other editions 2011-01-10 14:42:15 -05:00
XSLT.pm Follow up for Bug 3326: previous fix broke searches when 2011-03-22 17:21:49 -04:00
Z3950.pm fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00