[Koha-patches] [PATCH] Bug 5674: patron name sort ignoring case when placing holds.

Garry Collum gcollum at gmail.com
Wed Feb 1 18:44:33 CET 2012


Fixes the patron name sorting when placing holds.

Testing - See Bug 5674.
Create two patrons.  One named SMITH, THOMAS and the other Smith, John.
Search for an item to place on request.  Do a patron search for Smith.
---
 reserve/request.pl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/reserve/request.pl b/reserve/request.pl
index 21183da..24557f4 100755
--- a/reserve/request.pl
+++ b/reserve/request.pl
@@ -192,9 +192,9 @@ if ($borrowerslist) {
 
     foreach my $borrower (
         sort {
-                $a->{surname}
-              . $a->{firstname} cmp $b->{surname}
-              . $b->{firstname}
+                uc($a->{surname}
+              . $a->{firstname}) cmp uc($b->{surname}
+              . $b->{firstname})
         } @{$borrowerslist}
       )
     {
-- 
1.7.5.4



More information about the Koha-patches mailing list