# but explicitly avoid setting ship_ fields
my $new = new FS::cust_main ( {
- map { ( $_, scalar($cgi->param($_)) ) } (fields('cust_main')),
- map { ( "ship_$_", '' ) } (FS::cust_main->location_fields)
+ (map { ( $_, scalar($cgi->param($_)) ) } (fields('cust_main'))),
+ (map { ( "ship_$_", '' ) } (FS::cust_main->location_fields))
} );
warn Dumper( $new ) if $DEBUG > 1;
$error = 'Email address required';
}
- $options{'invoicing_list'} = [ $email ];
+ $options{'invoicing_list'} = [ split(/\s*,\s*/, $email) ];
# XXX really should include the phone numbers in here also
} else {