https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29826

--- Comment #1 from Fridolin Somers <fridolin.som...@biblibre.com> ---
Created attachment 129208
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129208&action=edit
Bug 29826: Remove warning in t/db_dependent/Template/Plugin/Branches.t

Bug 26587 added a concatenation that sends a warning if var is undef :
$ prove t/db_dependent/Template/Plugin/Branches.t
Use of uninitialized value $branchcode in concatenation (.) or string at
/kohadevbox/koha/Koha/Template/Plugin/Branches.pm line 35.

This patch adds an early return empty string when GetName is called
without $branchcode

Test plan :
1) Run t/db_dependent/Template/Plugin/Branches.t without patch
2) Run with the patch to see warning disappear

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to