[freeside-commits] freeside/httemplate/elements tr-select-cust_location.html, 1.9, 1.10

Ivan,,, ivan at wavetail.420.am
Fri Dec 3 19:52:34 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv17641

Modified Files:
	tr-select-cust_location.html 
Log Message:
sort locations in dropdown, RT#10766

Index: tr-select-cust_location.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/tr-select-cust_location.html,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- tr-select-cust_location.html	4 Dec 2010 03:29:06 -0000	1.9
+++ tr-select-cust_location.html	4 Dec 2010 03:52:32 -0000	1.10
@@ -225,9 +225,9 @@
 
 my $location_sort = sub {
      $a->country  cmp $b->country
-  or $a->city     cmp $b->city
-  or $a->address1 cmp $b->address1
-  or $a->address2 cmp $b->address2
+  or lc($a->city)     cmp lc($b->city)
+  or lc($a->address1) cmp lc($b->address1)
+  or lc($a->address2) cmp lc($b->address2)
 };
 
 my $disabled = ( $locationnum == -1 || ($editable && $locationnum) )



More information about the freeside-commits mailing list