]> git.koha-community.org Git - koha.git/commit
Bug 11779: (follow-up) improve GetLoggedInBranchcode() and add test cases
authorGalen Charlton <gmc@esilibrary.com>
Wed, 19 Feb 2014 16:40:06 +0000 (16:40 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Jun 2014 11:46:22 +0000 (07:46 -0400)
commite2f4b2e01f50071f6b812bdfdcdd8b7a03b40070
tree5fc45a9ddec0a5f11a007db5dac92f79c0898d05
parent4fbc168e448f26548700604383666f3ad798c178
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 065a3a5efa9b90723460a607ac85591c17945b00)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1b02c031a34e7e3e3caabbe0184fb5fe71447d95 )
Koha/Template/Plugin/Branches.pm