[Koha-patches] [PATCH] Fixing 2516 : Ordering names with multiple keys

Henri-Damien LAURENT henridamien.laurent at biblibre.com
Fri Aug 22 17:19:19 CEST 2008


---
 C4/Members.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Members.pm b/C4/Members.pm
index 7df9424..6a34c0e 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -164,7 +164,7 @@ sub SearchMember {
     my $count;
     my @data;
     my @bind = ();
-    
+    $orderby.=",firstname,othernames" if $orderby=~/name/;
     # this is used by circulation everytime a new borrowers cardnumber is scanned
     # so we can check an exact match first, if that works return, otherwise do the rest
     $query = "SELECT * FROM borrowers
-- 
1.5.4.3




More information about the Koha-patches mailing list