[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-37-gf79f002
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Oct 27 02:55:26 EDT 2009
The branch, 3.8-trunk has been updated
via f79f002f5678de9ef998aeb2bc247317c1583f1b (commit)
from d58e655c8d39bddef64c68f8c4154b9018cc12e1 (commit)
Summary of changes:
share/html/Search/Elements/Chart | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit f79f002f5678de9ef998aeb2bc247317c1583f1b
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Oct 27 13:16:30 2009 +0800
make sure $PrimaryGroupBy is not undef in /Search/Elements/Chart
diff --git a/share/html/Search/Elements/Chart b/share/html/Search/Elements/Chart
index 4f8c1e1..3db92c4 100644
--- a/share/html/Search/Elements/Chart
+++ b/share/html/Search/Elements/Chart
@@ -53,6 +53,8 @@ $ChartStyle => 'bars'
</%args>
<%init>
use RT::Report::Tickets;
+$PrimaryGroupBy ||= 'Queue'; # make sure PrimaryGroupBy is not undef
+
my $tix = RT::Report::Tickets->new( $session{'CurrentUser'} );
my ($count_name, $value_name) = $tix->SetupGroupings(
Query => $Query, GroupBy => $PrimaryGroupBy,
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list