diff options
-rw-r--r-- | FS/FS/cust_bill.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index c1724afe6..4424797c1 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -836,7 +836,7 @@ sub spool_csv { my($self, %opt) = @_; if ( $opt{'dest'} ) { - my %invoicing_list = map { /^(POST|FAX)$/ or $1 = 'EMAIL'; $1 => 1 } + my %invoicing_list = map { /^(POST|FAX)$/ or 'EMAIL' =~ /^(.*)$/; $1 => 1 } $self->cust_main->invoicing_list; return unless $invoicing_list{$opt{'dest'}}; } |