[Koha-bugs] [Bug 29883] Uninitialized value warning when GetAuthorisedValues gets called with no parameters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 14 10:58:19 CET 2022


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

--- Comment #1 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 129472
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129472&action=edit
Bug 29883: avoid uninitialized value warn in GetAuthorisedValues sub

GetAuthorisedValues is defined with optional parameter $category but it
is instantly interpolated without preventing "Use of uninitialized value
$category in concatenation (.) or string at .../C4/Koha.pm line 491."
warning.
As category param is optional, we can avoid throwing that warn as it is
something that can happen and is not an actual error:
C<$category> returns authorized values for just one category (optional).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list