Koha-clms/Koha/Template/Plugin
Galen Charlton e2f4b2e01f Bug 11779: (follow-up) improve GetLoggedInBranchcode() and add test cases
This patch adjusts the new GetLoggedInBranchcode() template function so
that it returns the empty string rather than undef if there is no
active user environment.  That way, there won't be lots of undefined
value warnings if/when this function gets used in the OPAC.

This patch also adds test cases.

To test:

[1] Verify that there are no regressions in the main test
    plan for this bug.
[2] Verify that prove -v t/db_dependent/Koha_template_plugin_Branches.t
    passes.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 065a3a5efa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1b02c031a3 )
2014-06-06 07:46:22 -04:00
..
AuthorisedValues.pm Bug 8215: TT plugins 2013-10-08 14:32:38 -03:00
Branches.pm Bug 11779: (follow-up) improve GetLoggedInBranchcode() and add test cases 2014-06-06 07:46:22 -04:00
Cache.pm Follow-up Bug 7387 - Add Template::Toolkit plugin to allow caching of includes 2013-03-07 10:58:52 -05:00
ItemTypes.pm Bug 8215: TT plugins 2013-10-08 14:32:38 -03:00
Koha.pm Bug 10206 - Add Koha TT Plugin - Koha.Preference 2013-08-15 15:08:20 -03:00
KohaAuthorisedValues.pm Bug 4173: Followup: Document KohaAuthorisedValues plugin 2012-09-14 16:37:21 +02:00
KohaBranchName.pm Bug 10494: remove spurious warnings from the KohaBranchName plugin 2013-07-15 15:02:14 -03:00
KohaDates.pm Bug 9479 follow-up: only set KohaDates as dynamic once 2013-03-30 23:35:55 -04:00