[Koha-patches] [PATCH] Bug fixing : 2516

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Fri Aug 29 18:15:20 CEST 2008


There was a problem with names ordering in circ/circulation.pl
---
 circ/circulation.pl |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/circ/circulation.pl b/circ/circulation.pl
index f2af9be..69401fd 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -526,10 +526,7 @@ my %labels;
 my $CGIselectborrower;
 if ($borrowerslist) {
     foreach (
-        sort {
-                lc $a->{'surname'}
-              . lc $a->{'firstname'} cmp lc $b->{'surname'}
-              . lc $b->{'firstname'}
+        sort {(lc $a->{'surname'} cmp lc $b->{'surname'} ?lc $a->{'surname'} cmp lc $b->{'surname'}:lc $a->{'firstname'} cmp lc $b->{'firstname'})
         } @$borrowerslist
       )
     {
-- 
1.5.4.3




More information about the Koha-patches mailing list