summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main_county.pm
diff options
context:
space:
mode:
authorivan <ivan>2002-03-20 07:37:05 +0000
committerivan <ivan>2002-03-20 07:37:05 +0000
commit74f795a943560dfc03f46642536386ce36355bb4 (patch)
tree0cf11f460cd1b2da86e440077b35d37d408bd25c /FS/FS/cust_main_county.pm
parentcd2371a35a0c416366fa1822d99571ca68a5ad1e (diff)
disable region caching for now
Diffstat (limited to 'FS/FS/cust_main_county.pm')
-rw-r--r--FS/FS/cust_main_county.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/FS/FS/cust_main_county.pm b/FS/FS/cust_main_county.pm
index 17fe164..95ed53d 100644
--- a/FS/FS/cust_main_county.pm
+++ b/FS/FS/cust_main_county.pm
@@ -119,15 +119,17 @@ sub check {
sub regionselector {
my ( $selected_county, $selected_state, $selected_country,
$prefix, $onchange ) = @_;
- $countyflag=1 if $selected_county;
- unless ( @cust_main_county ) { #cache
+ $countyflag = 0;
+
+# unless ( @cust_main_county ) { #cache
@cust_main_county = qsearch('cust_main_county', {} );
foreach my $c ( @cust_main_county ) {
$countyflag=1 if $c->county;
push @{$cust_main_county{$c->country}{$c->state}}, $c->county;
}
- }
+# }
+ $countyflag=1 if $selected_county;
my $script_html = <<END;
<SCRIPT>