diff options
author | Mark Wells <mark@freeside.biz> | 2016-04-06 14:09:42 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-04-06 14:09:49 -0700 |
commit | 11df448ba461eed4d33fded0f21ed15c155a7896 (patch) | |
tree | 79a098b65653e5f6525980ec75b4c0afdd89643e /httemplate/search/cust_event.html | |
parent | a16e54c819e3dd9a61f86042024405ab68a2c1ef (diff) |
add cust_event.no_action flag for events that conditionally execute, #36741
Diffstat (limited to 'httemplate/search/cust_event.html')
-rw-r--r-- | httemplate/search/cust_event.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/search/cust_event.html b/httemplate/search/cust_event.html index 757982b95..241a0267a 100644 --- a/httemplate/search/cust_event.html +++ b/httemplate/search/cust_event.html @@ -152,7 +152,12 @@ die "access denied" || $cgi->param('pkgnum') =~ /^(\d+)$/ ); -my $title = $cgi->param('failed') ? 'Failed billing events' : 'Billing events'; +my @statuses = $cgi->multi_param('event_status'); +my $title = 'Billing events'; +if ( $statuses[0] eq 'failed' and !defined($statuses[1]) ) { + # tweak the title if we're showing only failed events + $title = 'Failed billing events'; +} my %search = (); @@ -161,6 +166,7 @@ for my $param (@scalars) { $search{$param} = scalar( $cgi->param($param) ) if $cgi->param($param); } +$search{event_status} = \@statuses; #lists my @lists = qw( eventpart ); |