[Koha-bugs] [Bug 27861] Warning in C4/XSLT.pm - use of uninitialized value in numeric eq (==)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 4 17:34:07 CET 2021


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

--- Comment #1 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 117752
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117752&action=edit
Bug 27861: Warning in C4/XSLT.pm - use of uninitialized value in numeric eq
(==)

In C4/XSLT.pm :
 elsif ( exists $itemtypes->{ $item->effective_itemtype }
            && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 )

itemtype.notforloan is null by default, its generated a warning in logs.

Test plan :
1) Choose a record with itemtype.notforloan = NULL
2) Display the record using XSLT
3) See patch removed warning

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


More information about the Koha-bugs mailing list