wrong operator
[freeside.git] / FS / FS / cust_tax_location.pm
index bb61089..7a6af34 100644 (file)
@@ -211,7 +211,7 @@ sub batch_import {
 
   } elsif ( $format eq 'cch-zip' || $format eq 'cch-update-zip' ) {
     @fields = qw( zip city county state postalcity countyfips countydef default geocode cityflag unique );
-    push @fields, 'actionflag' if $format eq 'cch-update';
+    push @fields, 'actionflag' if $format eq 'cch-update-zip';
 
     $imported++ if $format eq 'cch-update'; #empty file ok
     
@@ -221,7 +221,7 @@ sub batch_import {
       $hash->{'data_vendor'} = 'cch-zip';
       delete($hash->{$_}) foreach qw( countyfips countydef unique );
 
-      $hash->{'cityflag'} = s/ //g;
+      $hash->{'cityflag'} =~ s/ //g;
 
       if (exists($hash->{actionflag}) && $hash->{actionflag} eq 'D') {
         delete($hash->{actionflag});