[Rt-commit] r6444 - in rtir/branches/2.1-EXPERIMENTAL: .
html/RTIR/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Wed Nov 15 23:58:43 EST 2006
Author: ruz
Date: Wed Nov 15 23:58:43 2006
New Revision: 6444
Modified:
rtir/branches/2.1-EXPERIMENTAL/ (props changed)
rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/NewQuery
rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/QueueSummary
rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/ShowChildren
rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/Type
rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Reply.html
rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/ShowChildren.html
Log:
r1840 at cubic-pc: cubic | 2006-11-16 07:58:26 +0300
* switch to RT::IR::States
Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/NewQuery
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/NewQuery (original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/NewQuery Wed Nov 15 23:58:43 2006
@@ -1,7 +1,7 @@
<%INIT>
@states = grep $_, @states;
unless( @states ) {
- @states = $m->comp("/RTIR/Elements/States", %ARGS );
+ @states = RT::IR::States( %ARGS );
}
my %seen = ();
Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/QueueSummary
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/QueueSummary (original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/QueueSummary Wed Nov 15 23:58:43 2006
@@ -42,7 +42,7 @@
my @queues = ('Incidents', 'Incident Reports', 'Investigations');
push @queues, 'Blocks' unless RT->Config->Get('DisableBlocksQueue');
my %states;
-$states{$_} = [ $m->comp( '/RTIR/Elements/States', Queue => $_ ) ] foreach @queues;
+$states{$_} = [ RT::IR::States( Queue => $_ ) ] foreach @queues;
my %seen;
my @states = sort grep !$seen{$_}++, map @$_, values %states;
</%ONCE>
Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/ShowChildren
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/ShowChildren (original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/ShowChildren Wed Nov 15 23:58:43 2006
@@ -57,9 +57,9 @@
<%INIT>
unless( @States ) {
- @States = ( $m->comp("/RTIR/Elements/States", Queue => $Queue), 'resolved', 'removed' );
+ @States = ( RT::IR::States( Queue => $Queue ), 'resolved', 'removed' );
}
-my @possible_states = $m->comp("/RTIR/Elements/States", Queue => $Queue, Inactive => 1 );
+my @possible_states = RT::IR::States( Queue => $Queue, Inactive => 1 );
my $Type = RT::IR::TicketType( Queue => $Queue );
$Format ||= RT->Config->Get('RTIRSearchResultFormats')->{'Child' . $Type};
Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/Type
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/Type (original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Elements/Type Wed Nov 15 23:58:43 2006
@@ -42,7 +42,7 @@
}
my $type = $type{$Queue} || '';
-my @states = $m->comp("/RTIR/Elements/States", Queue => $Queue);
+my @states = RT::IR::States( Queue => $Queue );
return ($type, @states);
</%INIT>
Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Reply.html
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Reply.html (original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Reply.html Wed Nov 15 23:58:43 2006
@@ -129,7 +129,7 @@
{
my @active_states;
foreach my $q( @queues ) {
- push @active_states, $m->comp('/RTIR/Elements/States', Queue => $q);
+ push @active_states, RT::IR::States( Queue => $q );
}
my %seen;
$ActiveStatesQuery = join ' OR ',
Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/ShowChildren.html
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/ShowChildren.html (original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/ShowChildren.html Wed Nov 15 23:58:43 2006
@@ -85,7 +85,7 @@
)
);
-my @possible_states = $m->comp("/RTIR/Elements/States", Queue => $Queue, Inactive => 1 );
+my @possible_states = RT::IR::States( Queue => $Queue, Inactive => 1 );
my $all_children = RT::Tickets->new( $session{'CurrentUser'} );
$all_children->FromSQL( $m->comp( '/RTIR/Elements/ChildrenQuery',
Queue => $Queue,
More information about the Rt-commit
mailing list