From 7df65c63a5c9ad6b79c60841d0e1eb2a7df520e2 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 18 Nov 2014 20:10:45 -0800 Subject: fix time queue redirection after #30921 --- httemplate/search/timeworked.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'httemplate/search/timeworked.html') diff --git a/httemplate/search/timeworked.html b/httemplate/search/timeworked.html index 3e3ddcbba..12c7da043 100644 --- a/httemplate/search/timeworked.html +++ b/httemplate/search/timeworked.html @@ -1,7 +1,7 @@ <& elements/search.html, 'title' => 'Time Worked', 'name' => 'time', - 'html_form' => qq!
!, + 'html_form' => $html_form, 'query' => $query, 'count_query' => $count_query, 'header' => [ '#', @@ -91,10 +91,12 @@ my($begin, $end) = FS::UI::Web::parse_beginning_ending($cgi); $where .= " AND $str2time_sql Transactions.Created $closing >= $begin ". " AND $str2time_sql Transactions.Created $closing <= $end "; +my $html_form = + qq( ); if ($cgi->param('category') =~ /^(\w+)$/) { $where .= " AND ocfv_TimeType.Content = '$1'"; + $html_form .= qq( ); } -warn $where."\n";; my $from = " FROM Transactions -- cgit v1.2.1