From: ivan Date: Wed, 16 Mar 2005 11:31:19 +0000 (+0000) Subject: fix regionselector for CR in region names for some reason X-Git-Tag: BEFORE_FINAL_MASONIZE~645 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=2d40f813c0153cfa2840eb7e218760623d88f55d;p=freeside.git 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 d96bd41de..7344e9c83 100644 --- a/FS/FS/cust_main_county.pm +++ b/FS/FS/cust_main_county.pm @@ -196,8 +196,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"; }