[Rt-commit] r7699 - in rtir/branches/2.3-EXPERIMENTAL: .
html/RTIR/Elements
jesse at bestpractical.com
jesse at bestpractical.com
Wed Apr 25 12:53:11 EDT 2007
Author: jesse
Date: Wed Apr 25 12:53:08 2007
New Revision: 7699
Added:
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/NobodyDueIncidents
Modified:
rtir/branches/2.3-EXPERIMENTAL/ (props changed)
rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm
rtir/branches/2.3-EXPERIMENTAL/etc/initialdata
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents
Log:
r56075 at pinglin: jesse | 2007-04-25 12:46:49 -0400
* Split out incidents owned by Nobody and the Current User on the most-due views on the homepage
Modified: rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm (original)
+++ rtir/branches/2.3-EXPERIMENTAL/etc/RTIR_Config.pm Wed Apr 25 12:53:08 2007
@@ -234,6 +234,7 @@
MyReminders
/RTIR/Elements/NewReports
/RTIR/Elements/UserDueIncidents
+ /RTIR/Elements/NobodyDueIncidents
/RTIR/Elements/DueIncidents
/RTIR/Elements/QueueSummary
RefreshHomepage
Modified: rtir/branches/2.3-EXPERIMENTAL/etc/initialdata
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/etc/initialdata (original)
+++ rtir/branches/2.3-EXPERIMENTAL/etc/initialdata Wed Apr 25 12:53:08 2007
@@ -795,6 +795,7 @@
body => [
{ type => 'component', name => '/RTIR/Elements/NewReports' },
{ type => 'component', name => '/RTIR/Elements/UserDueIncidents' },
+ { type => 'component', name => '/RTIR/Elements/NobodyDueIncidents' },
{ type => 'component', name => '/RTIR/Elements/DueIncidents' },
],
summary => [
Added: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/NobodyDueIncidents
==============================================================================
--- (empty file)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/NobodyDueIncidents Wed Apr 25 12:53:08 2007
@@ -0,0 +1,14 @@
+<& /RTIR/Elements/DueIncidents, %ARGS, Title => $Title, Query => $Query &>
+<%INIT>
+my $Title = loc( "Most due unowned incidents" );
+unless ( $Query ) {
+ $Query = $m->comp( '/RTIR/Elements/NewQuery', Queue => 'Incidents' );
+ $Query = join ' AND ', map "( $_ )", grep $_,
+ $Query,
+ '( Owner.id = '. $RT::Nobody->id .' )';
+}
+
+</%INIT>
+<%ARGS>
+$Query => undef
+</%ARGS>
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Elements/UserDueIncidents Wed Apr 25 12:53:08 2007
@@ -1,11 +1,11 @@
<& /RTIR/Elements/DueIncidents, %ARGS, Title => $Title, Query => $Query &>
<%INIT>
-my $Title = loc( "Most due incidents owned by [_1] (and unowned)", $Owner->Name );
+my $Title = loc( "Most due incidents owned by [_1]", $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 .' )';
+ '( Owner.id = '. $Owner->id .')';
}
</%INIT>
More information about the Rt-commit
mailing list