[freeside-commits] freeside/fs_selfservice/FS-SelfService SelfService.pm, 1.55, 1.56

Mark Wells mark at wavetail.420.am
Mon Aug 16 18:05:30 PDT 2010


Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService
In directory wavetail.420.am:/tmp/cvs-serv15043

Modified Files:
	SelfService.pm 
Log Message:
fix SelfService county selector, RT#8079

Index: SelfService.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/SelfService.pm,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -w -d -r1.55 -r1.56
--- SelfService.pm	12 Feb 2010 01:35:32 -0000	1.55
+++ SelfService.pm	17 Aug 2010 01:05:28 -0000	1.56
@@ -1393,6 +1393,18 @@
   my $county_html = $script_html;
   if ( $countyflag ) {
     $county_html .= qq!<SELECT NAME="${prefix}county" onChange="$param->{'onchange'}">!;
+    foreach my $county ( 
+      sort keys %{ $cust_main_county{$param->{'selected_country'}}{$param->{'selected_state'}} }
+    ) {
+      my $text = $county || '(n/a)';
+      $county_html .= qq!<OPTION VALUE="$county"!.
+                      ($county eq $param->{'selected_county'} ? 
+                        ' SELECTED>' : 
+                        '>'
+                      ).
+                      $text.
+                      '</OPTION>';
+    }
     $county_html .= '</SELECT>';
   } else {
     $county_html .=



More information about the freeside-commits mailing list