Bugzilla – Attachment 121819 Details for
Bug 28383
Log in via the itemsearch URL leads to Internal Server Error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28383: Fix itemsearch when accessed from the login form
Bug-28383-Fix-itemsearch-when-accessed-from-the-lo.patch (text/plain), 1.03 KB, created by
Jonathan Druart
on 2021-06-11 11:27:50 UTC
(
hide
)
Description:
Bug 28383: Fix itemsearch when accessed from the login form
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-06-11 11:27:50 UTC
Size:
1.03 KB
patch
obsolete
>From 76a127422b49b7406495c7a0cadcbedeb223c98e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 11 Jun 2021 13:25:57 +0200 >Subject: [PATCH] Bug 28383: Fix itemsearch when accessed from the login form > >There are params here (credentials), we need to test for the existence of $format. > >Test plan: >logout >access /cgi-bin/koha/catalogue/itemsearch.pl >Login >=> Without this patch you get a 500 (because we hit the exit statement) >=> With this patch you see the items search form. >--- > catalogue/itemsearch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl >index f5f66fe349f..0329f4b1d8e 100755 >--- a/catalogue/itemsearch.pl >+++ b/catalogue/itemsearch.pl >@@ -106,7 +106,7 @@ if ( Koha::MarcSubfieldStructures->search( { frameworkcode => '', kohafield => ' > $template->param( has_new_status => 1 ); > } > >-if (scalar keys %params > 0) { >+if ( defined $format ) { > # Parameters given, it's a search > > my $filter = { >-- >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 28383
:
121819
|
121893
|
121932