From: ivan Date: Wed, 16 Mar 2005 11:31:20 +0000 (+0000) Subject: fix regionselector for CR in region names for some reason X-Git-Tag: freeside_1_4_2~5 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=aff03d9bcb90f3514fb14e20277bb6111061c47c fix regionselector for CR in region names for some reason --- diff --git a/FS/FS/cust_main_county.pm b/FS/FS/cust_main_county.pm index e50e510a9..4ea2199b2 100644 --- a/FS/FS/cust_main_county.pm +++ b/FS/FS/cust_main_county.pm @@ -193,8 +193,9 @@ END foreach my $country ( sort keys %cust_main_county ) { $script_html .= "\nif ( country == \"$country\" ) {\n"; foreach my $state ( sort keys %{$cust_main_county{$country}} ) { - my $text = $state || '(n/a)'; - $script_html .= qq!opt(what.form.${prefix}state, "$state", "$text");\n!; + my( $dstate = $state ) =~ s/\n//g; + my $text = $dstate || '(n/a)'; + $script_html .= qq!opt(what.form.${prefix}state, "$dstate", "$text");\n!; } $script_html .= "}\n"; }