[Rt-commit] [rtir] 05/18: Fix an RTIR queue comparison I'd missed

Jesse Vincent jesse at bestpractical.com
Wed Mar 11 03:36:44 EDT 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 9326f913e1bd86b4baa17d8720dc921b691e6ed7
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 10 19:45:49 2015 -0700

    Fix an RTIR queue comparison I'd missed
---
 html/RTIR/Elements/AttachReports | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/RTIR/Elements/AttachReports b/html/RTIR/Elements/AttachReports
index d4ec10d..cb2e647 100644
--- a/html/RTIR/Elements/AttachReports
+++ b/html/RTIR/Elements/AttachReports
@@ -64,7 +64,7 @@ return unless @Ticket;
 
 my @parents;
 foreach my $e ( @Ticket ) {
-    if ( RT::IR::TicketType( Ticket => $e ) eq 'Incident' ) {
+    if ( $e->QueueObj->Lifecycle eq RT::IR->lifecycle_incident) {
         push @parents, $e->id;
     } else {
         push @parents, map $_->id, @{ RT::IR->Incidents( $e )->ItemsArrayRef || [] };

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


More information about the rt-commit mailing list