diff options
author | Mark Wells <mark@freeside.biz> | 2016-04-29 17:00:54 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-04-29 17:00:54 -0700 |
commit | 8ff31f04ed1e2da3e09c56e72ab0f879d0b7ab75 (patch) | |
tree | 6c3d64998a0751cd42f13502e6baa8f376559f87 /FS/FS/cust_event.pm | |
parent | 3df15084eeaacb2326ffb66ecf74216e950f3060 (diff) |
pass all event search parameters to reprint/re-email actions, #38426
Diffstat (limited to 'FS/FS/cust_event.pm')
-rw-r--r-- | FS/FS/cust_event.pm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/FS/FS/cust_event.pm b/FS/FS/cust_event.pm index 3edfaef..93743c4 100644 --- a/FS/FS/cust_event.pm +++ b/FS/FS/cust_event.pm @@ -12,7 +12,7 @@ use FS::cust_bill; use FS::cust_pay; use FS::svc_acct; -$DEBUG = 0; +$DEBUG = 1; $me = '[FS::cust_event]'; =head1 NAME @@ -387,11 +387,14 @@ sub search_sql_where { #} # huh? - if ( $param->{'event_status'} ) { - + my @event_status = ref($param->{'event_status'}) + ? @{ $param->{'event_status'} } + : split(',', $param->{'event_status'}); + if ( @event_status ) { my @status; + my ($done_Y, $done_N); - foreach (@{ $param->{'event_status'} }) { + foreach (@event_status) { if ($_ eq 'done_Y') { $done_Y = 1; } elsif ( $_ eq 'done_N' ) { |