[Rt-commit] [rtir] 21/24: Switch a bunch of RT::IR->Query calls to use lifecycles

Jesse Vincent jesse at bestpractical.com
Mon Feb 9 00:25:25 EST 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit 47252291ff1c0f9571e65b40f4b8d4c896c2014a
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Feb 8 19:45:24 2015 -0800

    Switch a bunch of RT::IR->Query calls to use lifecycles
---
 html/RTIR/Elements/AttachReports      |  2 +-
 html/RTIR/Elements/NewReports         | 12 ++++++------
 html/RTIR/Elements/SelectIncident     |  2 +-
 html/RTIR/Link/ToIncident/Refine.html |  2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/html/RTIR/Elements/AttachReports b/html/RTIR/Elements/AttachReports
index 34744fd..baf4d3a 100644
--- a/html/RTIR/Elements/AttachReports
+++ b/html/RTIR/Elements/AttachReports
@@ -74,7 +74,7 @@ return unless @parents;
 
 my $siblings = RT::Tickets->new( $Ticket[0]->CurrentUser );
 $siblings->FromSQL( RT::IR->Query(
-    Queue    => 'Incident Reports',
+    Lifecycle    => 'incident_reports',
     MemberOf => \@parents,
     Exclude  => \@Ticket,
 ) );
diff --git a/html/RTIR/Elements/NewReports b/html/RTIR/Elements/NewReports
index 07a76e2..0eb8d40 100644
--- a/html/RTIR/Elements/NewReports
+++ b/html/RTIR/Elements/NewReports
@@ -53,7 +53,7 @@
 &>
 
 <& /RTIR/Search/Elements/ShowResults,
-    Queue        => $Queue,
+    Lifecycle    => $Lifecycle,
     BaseQuery    => $BaseQuery,
     Query        => $Query,
     Format       => $Format,
@@ -69,7 +69,7 @@
 <%INIT>
 my $title = loc("New unlinked Incident Reports...");
 
-$Query ||= RT::IR->Query( Queue => $Queue, Initial => 1 );
+$Query ||= RT::IR->Query( Lifecycle => $Lifecycle, Initial => 1 );
 
 $Rows = $session{'CurrentUser'}->UserObj->Preferences(
     'SummaryRows',
@@ -77,7 +77,7 @@ $Rows = $session{'CurrentUser'}->UserObj->Preferences(
 ) unless defined $Rows;
 
 my $QueryString = $m->comp('/Elements/QueryString',
-    Queue   => $Queue,
+    Lifecycle => $Lifecycle,
     Query   => $Query,
     Format  => $Format,
     Rows    => $Rows,
@@ -87,7 +87,7 @@ my $QueryString = $m->comp('/Elements/QueryString',
 );
 
 my $BulkQS = $m->comp('/Elements/QueryString',
-    Queue   => $Queue,
+    Lifecycle => $Lifecycle,
     Query   => $Query,
     OrderBy => $OrderBy,
     Order   => $Order,
@@ -96,8 +96,8 @@ my $BulkQS = $m->comp('/Elements/QueryString',
 </%INIT>
 
 <%ARGS>
-$Queue     => 'Incident Reports'
-$BaseQuery => RT::IR->Query( Queue => $Queue )
+$Lifecycle     => 'incident_reports'
+$BaseQuery => RT::IR->Query( Lifecycle => $Lifecycle )
 $Query     => undef
 $Format    => RT->Config->Get('RTIRSearchResultFormats')->{'NewReports'}
 $Rows      => undef
diff --git a/html/RTIR/Elements/SelectIncident b/html/RTIR/Elements/SelectIncident
index b2fdc5c..6cd64b7 100644
--- a/html/RTIR/Elements/SelectIncident
+++ b/html/RTIR/Elements/SelectIncident
@@ -97,7 +97,7 @@ if ( $SplitObj ) {
 my $config = RT->Config->Get('RTIR_IncidentChildren')->{ $Type };
 
 my $query = RT::IR->Query(
-    Queue => 'Incidents',
+    Lifecycle => 'incidents',
     And => join ' OR ', map "id = $_", @potential
 );
 my $format = RT->Config->Get('RTIRSearchResultFormats')->{'LinkIncident'};
diff --git a/html/RTIR/Link/ToIncident/Refine.html b/html/RTIR/Link/ToIncident/Refine.html
index ef7b427..33f4a2d 100644
--- a/html/RTIR/Link/ToIncident/Refine.html
+++ b/html/RTIR/Link/ToIncident/Refine.html
@@ -51,7 +51,7 @@ return $m->comp(
     %ARGS,
     ResultPage => 'RTIR/Link/ToIncident/?id='. $ARGS{'id'},
     BaseQuery => RT::IR->Query(
-        Queue => 'Incidents',
+        Lifecycle => 'incidents',
         HasNoMember => $ARGS{'id'},
         Costituency => $ARGS{'id'},
     ),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list