Koha-clms/catalogue
Paul Poulain 9de80e949c Bug 6840 warning in logs
In staff interface, in search (catalogue/search.pl), there is a warning saying:
[Fri Sep  2 18:20:24 2011] search.pl: Use of uninitialized value $key in hash
element at /home/paul/koha.dev/koha-community/C4/Templates.pm line 227.

The problem happens when searching from the quick search toolbar, not when you
search from advanced search.
Investigating, it seems it's because the sort_by is not defined in this case.

This patch
* fixes the problem in Search.pl by setting the parameter only if there is a sort_by field
* modify te Template->param sub to get a better error message. Instead of having just "use of uninitia..." get the value you try to set to an empty key. Much easier to understand which line causes the problem

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 37902b25a7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-10-19 15:56:01 -04:00
..
ISBDdetail.pl Bug 5791 - Robust handling of deleted/non-existent biblios and authority records 2011-04-20 12:03:59 +12:00
MARCdetail.pl Bug 5791 - Robust handling of deleted/non-existent biblios and authority records 2011-04-20 12:03:59 +12:00
cardview.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
detail.pl Bug 6129 - [3.4.x] this adds an ISSN to serialssolutions URLs 2011-09-13 20:29:28 -04:00
detailprint.pl Bug 6050 Make calls to GetItemsInfo consistent 2011-06-19 16:03:48 -04:00
export.pl Bug 6641 -- Specially crafted URL can allow unauthorized download of MARC files from staff client 2011-08-01 12:39:47 -04:00
issuehistory.pl Corrected: Fix for Bug 4529, columns on circ history all screwy 2010-05-24 10:43:28 -04:00
labeledMARCdetail.pl Bug 5791 - Robust handling of deleted/non-existent biblios and authority records 2011-04-20 12:03:59 +12:00
moredetail.pl Bug 6755 Problems with switching languages 2011-10-08 12:21:25 -04:00
search.pl Bug 6840 warning in logs 2011-10-19 15:56:01 -04:00
showmarc.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
updateitem.pl Fix for Bug 4853 - Rights needed to renew a document 2011-03-06 08:26:35 +13:00