projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
qualify warn; sort_by is not a required search parameter
[koha.git]
/
C4
/
Search.pm
diff --git
a/C4/Search.pm
b/C4/Search.pm
index
791dd00
..
5576ee8
100644
(file)
--- a/
C4/Search.pm
+++ b/
C4/Search.pm
@@
-426,6
+426,9
@@
sub getRecords {
elsif ( $sort eq "title_za" ) {
$sort_by .= "1=4 >i ";
}
+ else {
+ warn "Ignoring unrecognized sort '$sort' requested" if $sort_by;
+ }
}
if ($sort_by) {
if ( $results[$i]->sort( "yaz", $sort_by ) < 0 ) {