X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FChart;fp=rt%2Fshare%2Fhtml%2FSearch%2FChart;h=7bcb8d0d979ed74398e96da1f0f0fc294a0469cf;hb=75162bb14b3e38d66617077843f4dfdcaf09d5c4;hp=429fea52f3705aaa07bf8476ae0c66b19f5836b1;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Search/Chart b/rt/share/html/Search/Chart index 429fea52f..7bcb8d0d9 100644 --- a/rt/share/html/Search/Chart +++ b/rt/share/html/Search/Chart @@ -66,7 +66,8 @@ if ($ChartStyle eq 'pie') { use RT::Report::Tickets; my $tix = RT::Report::Tickets->new( $session{'CurrentUser'} ); - +my %AllowedGroupings = reverse $tix->Groupings( Query => $Query ); +$PrimaryGroupBy = 'Queue' unless exists $AllowedGroupings{$PrimaryGroupBy}; my ($count_name, $value_name) = $tix->SetupGroupings( Query => $Query, GroupBy => $PrimaryGroupBy, );