Koha-clms/Koha/Template/Plugin
Fridolin Somers d673f068ce Bug 29826: Manage call of Template Plugin Branches GetName() with null or empty branchcode
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 with $branchcode null or empty string.

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

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-03-04 09:59:38 -05:00
..
AdditionalContents.pm Bug 24387: Rename "News" with "Additional contents" 2021-08-16 11:55:55 +02:00
Asset.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
AudioAlerts.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
AuthorisedValues.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Biblio.pm Bug 29086: Simplify querying active article requests 2021-10-07 10:54:59 +02:00
Branches.pm Bug 29826: Manage call of Template Plugin Branches GetName() with null or empty branchcode 2022-03-04 09:59:38 -05:00
Cache.pm
…
Categories.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
CirculationRules.pm Bug 24154: (follow-up) Make parameter and variable more explicit, add tests 2021-05-10 10:27:53 +02:00
Context.pm
…
Desks.pm
…
HtmlId.pm Bug 27336: Add POD for new package 2021-01-11 10:27:37 +01:00
HtmlTags.pm
…
I18N.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
ItemTypes.pm
…
Koha.pm
…
KohaDates.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
KohaPlugins.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
KohaSpan.pm
…
Languages.pm
…
Price.pm
…
Registers.pm
…
Remove_MARC_punctuation.pm
…
TablesSettings.pm Bug 17600: Remove wrong C4::Context imports 2021-09-20 14:44:27 +02:00
To.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
raw.pm
…