[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-32-gb58cd4f
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Oct 26 04:53:18 EDT 2009
The branch, 3.8-trunk has been updated
via b58cd4fe84a350a56c1808d5181a46ea48390d5d (commit)
from ff2224d68054e3e0e1d5383992a7b3dc8094c5bb (commit)
Summary of changes:
share/html/Search/Chart.html | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit b58cd4fe84a350a56c1808d5181a46ea48390d5d
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Oct 26 16:53:09 2009 +0800
use $ARGS{Query} instead of $Query because we may change $ARGS{Query} later in /Search/Chart.html
diff --git a/share/html/Search/Chart.html b/share/html/Search/Chart.html
index 4b3785e..a3f8e9b 100644
--- a/share/html/Search/Chart.html
+++ b/share/html/Search/Chart.html
@@ -46,7 +46,6 @@
%#
%# END BPS TAGGED BLOCK }}}
<%args>
-$Query => "id > 0"
$PrimaryGroupBy => 'Queue'
$SecondaryGroupBy => ''
$ChartStyle => 'bars'
@@ -54,6 +53,7 @@ $Description => undef
</%args>
<%init>
$ARGS{SecondaryGroupBy} ||= '';
+$ARGS{Query} ||= 'id > 0';
# FIXME: should be factored with RT::Report::Tickets::Label :(
my $PrimaryGroupByLabel;
@@ -87,8 +87,8 @@ my @actions = $m->comp( '/Widgets/SavedSearch:process', args => \%ARGS, self =>
<br />
<&| /Widgets/TitleBox, title => loc('Graph Properties')&>
<form method="get" action="<%RT->Config->Get('WebPath')%>/Search/Chart.html">
-<input type="hidden" class="hidden" name="Query" value="<% $Query %>" />
-<&|/l, $m->scomp('Elements/SelectChartType', Name => 'ChartStyle', Default => $ChartStyle), $m->scomp('Elements/SelectGroupBy', Name => 'PrimaryGroupBy', Query => $Query, Default => $PrimaryGroupBy)
+<input type="hidden" class="hidden" name="Query" value="<% $ARGS{Query} %>" />
+<&|/l, $m->scomp('Elements/SelectChartType', Name => 'ChartStyle', Default => $ChartStyle), $m->scomp('Elements/SelectGroupBy', Name => 'PrimaryGroupBy', Query => $ARGS{Query}, Default => $PrimaryGroupBy)
&>[_1] chart by [_2]</&><input type="submit" class="button" value="<%loc('Update Graph')%>" />
</form>
</&>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list