Bugzilla – Attachment 194934 Details for
Bug 41866
"Use of uninitialized value..." warning in opac-search.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41866: "Use of uninitialized value..." warning in opac-search.pl
Bug-41866-Use-of-uninitialized-value-warning-in-op.patch (text/plain), 1.74 KB, created by
Roman Dolny
on 2026-03-07 20:54:21 UTC
(
hide
)
Description:
Bug 41866: "Use of uninitialized value..." warning in opac-search.pl
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2026-03-07 20:54:21 UTC
Size:
1.74 KB
patch
obsolete
>From a86bb3d35f08020ccc2a7b3624e1f95e18d6e294 Mon Sep 17 00:00:00 2001 >From: Roman Dolny <roman.dolny@jezuici.pl> >Date: Sat, 7 Mar 2026 20:48:05 +0000 >Subject: [PATCH] Bug 41866: "Use of uninitialized value..." warning in > opac-search.pl > >The warning >[WARN] Use of uninitialized value in concatenation (.) or string at >/kohadevbox/koha/opac/opac-search.pl line 600. >appears in plack-opac-error.log > >Test plan: >========== >1. Observe plack-opac-error.log. >2. Go to Advanced search in OPAC. >3. Select any of item type ("Limit to any of the following:") in tab > "Item type" and perform search (do not enter any "Search for:" terms). >==> Warning appears in plack-opac-error.log. >4. Apply the patch; restart_all. >5. Repeat 2-3. >==> No warning in plack-opac-error.log. > >Sponsored-by: Ignatianum University in Cracow >--- > opac/opac-search.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 2dcb218dc7..57d0786742 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -597,8 +597,8 @@ if ($tag) { > my $json = JSON->new->utf8->allow_nonref(1); > $pasarParams .= '&query=' . uri_escape_utf8( $json->encode($query) ); > $pasarParams .= '&count=' . uri_escape_utf8($results_per_page); >- $pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query); >- $pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type); >+ $pasarParams .= '&simple_query=' . uri_escape_utf8($simple_query) if $simple_query; >+ $pasarParams .= '&query_type=' . uri_escape_utf8($query_type) if ($query_type); > my $itemtypes_nocategory = > { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; > eval { >-- >2.39.5
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 41866
:
194934
|
194936