From 2d40f813c0153cfa2840eb7e218760623d88f55d Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 16 Mar 2005 11:31:19 +0000 Subject: [PATCH] fix regionselector for CR in region names for some reason --- FS/FS/cust_main_county.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"; } -- 2.11.0