Koha/catalogue
Paul Poulain 37902b25a7 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>
2011-10-13 16:17:33 +13:00
..
cardview.pl Bug 4330 : Adding some copyright BibLibre statements 2011-03-21 10:57:20 +13:00
detail.pl Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
detailprint.pl Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
export.pl Bug 6641 -- Specially crafted URL can allow unauthorized download of MARC files from staff client 2011-08-01 21:13:11 +12:00
ISBDdetail.pl Bug 5791 - Robust handling of deleted/non-existent biblios and authority records 2011-04-20 12:03:59 +12: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
MARCdetail.pl Bug 5791 - Robust handling of deleted/non-existent biblios and authority records 2011-04-20 12:03:59 +12:00
moredetail.pl Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
search.pl Bug 6840 warning in logs 2011-10-13 16:17:33 +13: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