summaryrefslogtreecommitdiff
path: root/httemplate/search/timeworked.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-11-18 20:10:44 -0800
committerIvan Kohler <ivan@freeside.biz>2014-11-18 20:10:44 -0800
commite9b2a0d4a388aeb876560aa243d4b9d90ba8c84b (patch)
treea26d87679c60412428edd08232960af8d5af0806 /httemplate/search/timeworked.html
parent5499e8e571862b071e1b072a017aba16636ea34b (diff)
fix time queue redirection after #30921
Diffstat (limited to 'httemplate/search/timeworked.html')
-rw-r--r--httemplate/search/timeworked.html6
1 files changed, 4 insertions, 2 deletions
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!<FORM NAME="timeForm" ACTION="${p}misc/timeworked.html" METHOD="POST">!,
+ '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( <FORM NAME="timeForm" ACTION="${p}misc/timeworked.html" METHOD="POST"> );
if ($cgi->param('category') =~ /^(\w+)$/) {
$where .= " AND ocfv_TimeType.Content = '$1'";
+ $html_form .= qq( <INPUT TYPE="hidden" NAME="category" VALUE="$1"> );
}
-warn $where."\n";;
my $from = "
FROM Transactions