X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FSearch%2FChart.html;h=952f09cf4cd761ee690e9e492acc8dd4904f2f7b;hp=571c3d3a0ad1eb07248e188b143ae87a618ecc70;hb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;hpb=aa38c070977cf63365a4d26a3e4a7e5049ad70d0 diff --git a/rt/share/html/Search/Chart.html b/rt/share/html/Search/Chart.html index 571c3d3a0..952f09cf4 100644 --- a/rt/share/html/Search/Chart.html +++ b/rt/share/html/Search/Chart.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -51,11 +51,13 @@ $ChartStyle => 'bars' $Description => undef <%init> +$m->callback( ARGSRef => \%ARGS, CallbackName => 'Initial' ); + $ARGS{Query} ||= 'id > 0'; # FIXME: should be factored with RT::Report::Tickets::Label :( my $PrimaryGroupByLabel; -if ( $PrimaryGroupBy =~ /^(?:CF|CustomField)\.{(.*)}$/ ) { +if ( $PrimaryGroupBy =~ /^(?:CF|CustomField)\.\{(.*)\}$/ ) { my $cf = $1; if ( $cf =~ /\D/ ) { $PrimaryGroupByLabel = loc( "custom field '[_1]'", $cf ); @@ -97,8 +99,8 @@ my %query; ); for(@session_fields) { - $query{$_} = $current->{$_} unless defined $query{$_}; $query{$_} = $DECODED_ARGS->{$_} unless defined $query{$_}; + $query{$_} = $current->{$_} unless defined $query{$_}; } if ($DECODED_ARGS->{'SavedSearchLoadSubmit'}) { @@ -111,12 +113,18 @@ my %query; } +$m->callback( ARGSRef => \%ARGS, QueryArgsRef => \%query ); <& /Elements/Header, Title => $title &> <& /Elements/Tabs, QueryArgs => \%query &> <& /Elements/ListActions, actions => \@actions &> + +% $m->callback( ARGSRef => \%ARGS, CallbackName => 'BeforeChart' ); + <& /Search/Elements/Chart, %ARGS &> +% $m->callback( ARGSRef => \%ARGS, CallbackName => 'AfterChart' ); +
<&| /Widgets/TitleBox, title => loc('Chart Properties')&>