Bug 28383: Fix itemsearch when accessed from the login form
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 11 Jun 2021 11:25:57 +0000 (13:25 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Jun 2021 14:41:47 +0000 (16:41 +0200)
commita56c4f63ba4af04ab1655200dfdd797e7338b176
tree3b9b05920b7452be292c3c191f4c092d197138e6
parenta151d7ba0f233745d716d439881818e8ed8f7c57
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.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
catalogue/itemsearch.pl