projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4129612
)
qualify warn; sort_by is not a required search parameter
author
Galen Charlton
<galen.charlton@liblime.com>
Wed, 8 Apr 2009 20:13:12 +0000
(15:13 -0500)
committer
Henri-Damien LAURENT
<henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:09 +0000
(21:15 +0200)
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Search.pm
patch
|
blob
|
history
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 ) {