X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_event.html;h=95e46d7a8297aef5b274dd38feb7f3fea16de5ae;hp=f1b99510a4ecbbdf2c6801770078717b6795149e;hb=1ff526055d1c14c45f1eab0c29e4ac47f350b32b;hpb=ffc750d5d4bdab392d201124351fe38f0048f1b5 diff --git a/httemplate/search/cust_event.html b/httemplate/search/cust_event.html index f1b99510a..95e46d7a8 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->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( payby eventpart );