don't override countrydefault or whatever with a blank value in bulk customer import
authorivan <ivan>
Tue, 26 Aug 2008 21:59:25 +0000 (21:59 +0000)
committerivan <ivan>
Tue, 26 Aug 2008 21:59:25 +0000 (21:59 +0000)
FS/FS/cust_main.pm

index f0c1dea..7da4399 100644 (file)
@@ -5714,8 +5714,8 @@ sub batch_import {
           $columns[0] = $part_referral->refnum;
         }
 
-        #$cust_main{$field} = shift @$columns; 
-        $cust_main{$field} = shift @columns; 
+        my $value = shift @columns;
+        $cust_main{$field} = $value if length($value);
       }
     }