Bugzilla – Attachment 119852 Details for
Bug 27861
Warning in C4/XSLT.pm - use of uninitialized value in numeric eq (==)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27861: Warning in C4/XSLT.pm - use of uninitialized value in numeric eq (==)
Bug-27861-Warning-in-C4XSLTpm---use-of-uninitializ.patch (text/plain), 1.39 KB, created by
Martin Renvoize
on 2021-04-19 13:06:22 UTC
(
hide
)
Description:
Bug 27861: Warning in C4/XSLT.pm - use of uninitialized value in numeric eq (==)
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2021-04-19 13:06:22 UTC
Size:
1.39 KB
patch
obsolete
>From 86bca6d6bf445f6c28484498dc17f936740edb54 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 4 Mar 2021 17:27:16 +0100 >Subject: [PATCH] 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> >--- > C4/XSLT.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 12c97db41e..d4cdb832cd 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -350,6 +350,7 @@ sub buildKohaItemsNamespace { > $substatus = exists $descs{$item->notforloan} ? $descs{$item->notforloan}->{opac_description} : "Not for loan"; > } > elsif ( exists $itemtypes->{ $item->effective_itemtype } >+ && $itemtypes->{ $item->effective_itemtype }->{notforloan} > && $itemtypes->{ $item->effective_itemtype }->{notforloan} == 1 ) > { > $status = "1" =~ /^($ref_status)$/ >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27861
:
117752
|
119731
| 119852