From: Kyle M Hall Date: Tue, 4 May 2010 16:33:46 +0000 (+0000) Subject: Fixed Patron Search Results X-Git-Tag: v3.02.00-beta~250 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=3a5b075c908646915ca522c10ba3057fcbb6d6ab;p=koha_gimpoz Fixed Patron Search Results By default, the patron search was pulling results in *Descending* order, then reordering the results on the page using javascript in *Ascending* order. This was causing screwy results where the entire list of results of multiple pages was not in complete alphabetical order. Fixed by changing the SQL to pull in Ascending order. Signed-off-by: Galen Charlton --- diff --git a/members/member.pl b/members/member.pl index 700f200efd..58485b634f 100755 --- a/members/member.pl +++ b/members/member.pl @@ -80,7 +80,7 @@ if ($orderbyparams){ push @orderby, {$orderbyelt[0]=>$orderbyelt[1]||0}; } else { - @orderby = ({firstname=>1},{surname=>1}); + @orderby = ({surname=>0},{firstname=>0}); } $member =~ s/,//g; #remove any commas from search string