]> git.koha-community.org Git - koha.git/commit
Bug 27861: Warning in C4/XSLT.pm - use of uninitialized value in numeric eq (==)
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 4 Mar 2021 16:27:16 +0000 (17:27 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 24 May 2021 15:22:43 +0000 (15:22 +0000)
commit833f38cde8f452e50a53ac84b70560069da2e79a
treeb9b85b25a49cb4f6f67e078436aa28b5447f688f
parentffceb3f79c8ff27db456db9ea20c208083eb2540
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) Perform a search in the OPAC which will return results which
   include the record using XSLT
3) See patch removed warning

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit bda9b9e122df436d48e6416d140a7bbb45c8546c)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit fa0af2da9f89fe4149336b76ec987713b41a1fc8)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
C4/XSLT.pm