[Rt-commit] [rtir] 06/24: Further lifecycle updates
Jesse Vincent
jesse at bestpractical.com
Mon Feb 9 00:25:18 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 7f869800eab13450f203c5005c259ab187371336
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Fri Feb 6 15:42:44 2015 -0800
Further lifecycle updates
---
lib/RT/Action/RTIR_ChangeParentOwnership.pm | 2 +-
lib/RT/Action/RTIR_SetDueIncident.pm | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/RT/Action/RTIR_ChangeParentOwnership.pm b/lib/RT/Action/RTIR_ChangeParentOwnership.pm
index df59778..4de1fbf 100644
--- a/lib/RT/Action/RTIR_ChangeParentOwnership.pm
+++ b/lib/RT/Action/RTIR_ChangeParentOwnership.pm
@@ -62,7 +62,7 @@ sub Commit {
my $txn = $self->TransactionObj;
# change owner of parent Incident(s)
- my $query = "Queue = 'Incidents'"
+ my $query = "Lifecycle = 'incidents'"
." AND HasMember = " . $self->TicketObj->Id
." AND Owner != ". $txn->NewValue;
my $parents = RT::Tickets->new( $self->CreatorCurrentUser );
diff --git a/lib/RT/Action/RTIR_SetDueIncident.pm b/lib/RT/Action/RTIR_SetDueIncident.pm
index e5c4b8e..db63ed8 100644
--- a/lib/RT/Action/RTIR_SetDueIncident.pm
+++ b/lib/RT/Action/RTIR_SetDueIncident.pm
@@ -74,7 +74,7 @@ Performs update.
sub Commit {
my $self = shift;
- if ( $self->TicketObj->QueueObj->Name eq 'Incidents' ) {
+ if ( $self->TicketObj->QueueObj->Lifecycle eq 'incidents' ) {
return $self->UpdateDue( $self->TicketObj );
}
@@ -97,7 +97,7 @@ sub UpdateDue {
my $self = shift;
my $incident = shift;
return 1 unless $incident;
- return 1 unless $incident->QueueObj->Name eq 'Incidents';
+ return 1 unless $incident->QueueObj->Lifecycle eq 'incidents';
my $children = RT::IR->IncidentChildren(
$incident, Initial => 1, Active => 1,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list