[Rt-commit] [svn] r1581 - rtir/branches/1.1-TESTING/lib/RT/Action
leira at pallas.eruditorum.org
leira at pallas.eruditorum.org
Wed Sep 29 04:36:36 EDT 2004
Author: leira
Date: Wed Sep 29 04:36:35 2004
New Revision: 1581
Modified:
rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_ChangeParentOwnership.pm
rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_OpenParent.pm
Log:
Fix direction of MemberOf/HasMember.
Modified: rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_ChangeParentOwnership.pm
==============================================================================
--- rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_ChangeParentOwnership.pm (original)
+++ rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_ChangeParentOwnership.pm Wed Sep 29 04:36:35 2004
@@ -76,7 +76,7 @@
my $self = shift;
# change owner of parent Incident(s)
- my $query = "Queue = 'Incidents' AND MemberOf = " . $self->TicketObj->Id;
+ my $query = "Queue = 'Incidents' AND HasMember = " . $self->TicketObj->Id;
my $parents = new RT::Tickets($self->TransactionObj->CurrentUser);
$parents->FromSQL($query);
Modified: rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_OpenParent.pm
==============================================================================
--- rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_OpenParent.pm (original)
+++ rtir/branches/1.1-TESTING/lib/RT/Action/RTIR_OpenParent.pm Wed Sep 29 04:36:35 2004
@@ -78,7 +78,7 @@
# If the child becomes not-closed, make sure the Incident is re-opened
if ($self->TransactionObj->NewValue ne 'rejected' &&
$self->TransactionObj->NewValue ne 'resolved') {
- my $query = "Queue = 'Incidents' AND MemberOf = " . $self->TicketObj->Id;
+ my $query = "Queue = 'Incidents' AND HasMember = " . $self->TicketObj->Id;
my $parents = new RT::Tickets($self->TransactionObj->CurrentUser);
$parents->FromSQL($query);
More information about the Rt-commit
mailing list