[freeside-commits] freeside/httemplate/misc states.cgi,1.1,1.2

Ivan,,, ivan at wavetail.420.am
Mon Apr 3 02:46:59 PDT 2006


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv8347/httemplate/misc

Modified Files:
	states.cgi 
Log Message:
have the UI use full country names, and state names outside the US...

Index: states.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/states.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- states.cgi	10 Sep 2005 14:50:57 -0000	1.1
+++ states.cgi	3 Apr 2006 09:46:57 -0000	1.2
@@ -1,16 +1,6 @@
 <%
 
   my $country = $cgi->param('arg');
+  my @output = states_hash($country);
 
-  my @states = 
-     sort
-     map { s/[\n\r]//g; $_; }
-     map { $_->state; }
-     qsearch( 'cust_main_county',
-              { 'country' => $country },
-              'DISTINCT ON ( state ) *',
-            )
-  ;
-
-
-%>[ <%= join(', ', map { qq("$_") } @states) %> ]
+%>[ <%= join(', ', map { qq("$_") } @output) %> ]



More information about the freeside-commits mailing list