Commit bd18d4f8 authored by Kevin Falcone's avatar Kevin Falcone
Browse files

New ModifyQuery and AfterResults callbacks for homepage.

The portlets on the RTIR homepage now have a little more flexibility
without requiring mason overlays.
parent 5da584f9
......@@ -66,6 +66,7 @@ Description => loc('Due Incidents')
Order => $Order,
AllowSorting => 0,
&>
% $m->callback( CallbackName => 'AfterResults' );
</&>
......
......@@ -65,6 +65,7 @@
Order => $Order,
AllowSorting => 0,
&>
% $m->callback( CallbackName => 'AfterResults' );
</&>
<%INIT>
......
......@@ -49,6 +49,7 @@
<%INIT>
my $Title = loc( "Most due unowned incidents" );
$Query ||= RT::IR->ActiveQuery( Queue => 'Incidents', And => 'Owner.id = '. $RT::Nobody->id );
$m->callback( CallbackName => 'ModifyQuery', Query => \$Query );
</%INIT>
<%ARGS>
$Query => undef
......
......@@ -49,6 +49,7 @@
<%INIT>
my $Title = loc( "Most due incidents owned by [_1]", $Owner->Name );
$Query ||= RT::IR->ActiveQuery( Queue => 'Incidents', And => 'Owner.id = '. $Owner->id );
$m->callback( CallbackName => 'ModifyQuery', Query => \$Query );
</%INIT>
<%ARGS>
$Owner => $session{'CurrentUser'}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment