From ed9d4873d4c09a050a60532202d6758bc634c122 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Fri, 15 Jan 2010 17:01:21 +0100 Subject: [PATCH] Fix ordering in member search This fix the default ordering when the librarian browser by "last name". It must be ordered by "family name". --- members/member.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/members/member.pl b/members/member.pl index 1ae50f3bd8..f2392c55d9 100755 --- a/members/member.pl +++ b/members/member.pl @@ -89,9 +89,9 @@ if ($orderbyparams){ push @orderby, {$orderbyelt[0]=>$orderbyelt[1]||0}; } else { - @orderby = ({surname=>1},{firstname=>1}); + @orderby = ({firstname=>1},{surname=>1}); } -warn Data::Dumper::Dumper(@orderby); + $member =~ s/,//g; #remove any commas from search string $member =~ s/\*/%/g; -- 2.39.5