[Rt-commit] r5279 - in rtir/branches/1.9-EXPERIMENTAL:
html/RTIR/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Mon May 22 11:05:46 EDT 2006
Author: ruz
Date: Mon May 22 11:05:46 2006
New Revision: 5279
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents
Log:
r1435 at cubic-pc: cubic | 2006-05-22 18:41:37 +0400
* don't show inactive incidents in "most due inc owned *" box
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents Mon May 22 11:05:46 2006
@@ -1,8 +1,15 @@
<& /RTIR/Elements/DueIncidents, %ARGS, Title => $Title, Query => $Query &>
<%INIT>
my $Title = loc( "Most due incidents owned by [_1] (and unowned)", $Owner->Name );
+unless ( $Query ) {
+ $Query = $m->comp( '/RTIR/Elements/NewQuery', Queue => 'Incidents' );
+ $Query = join ' AND ', map "( $_ )", grep $_,
+ $Query,
+ '( Owner.id = '. $Owner->id .' OR Owner.id = '. $RT::Nobody->id .' )';
+}
+
</%INIT>
<%ARGS>
$Owner => $session{'CurrentUser'}
-$Query => '( Owner = '. $Owner->id .' OR Owner = '. $RT::Nobody->id .' )'
+$Query => undef
</%ARGS>
More information about the Rt-commit
mailing list