[Rt-commit] r4751 - in rtir/branches/1.9-EXPERIMENTAL:
lib/RT/Condition
ruz at bestpractical.com
ruz at bestpractical.com
Mon Mar 13 20:07:22 EST 2006
Author: ruz
Date: Mon Mar 13 20:07:14 2006
New Revision: 4751
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_CustomerResponse.pm
rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_RequireDueChange.pm
rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_StaffResponse.pm
Log:
r955 at cubic-pc: cubic | 2006-03-14 04:12:54 +0300
* minor
Modified: rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_CustomerResponse.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_CustomerResponse.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_CustomerResponse.pm Mon Mar 13 20:07:14 2006
@@ -64,10 +64,10 @@
my $self = shift;
if ($self->TransactionObj->Type eq 'Correspond' &&
- $self->TicketObj->Owner ne $self->TransactionObj->Creator) {
- return 1;
+ $self->TicketObj->Owner ne $self->TransactionObj->Creator) {
+ return 1;
} else {
- return 0;
+ return 0;
}
}
Modified: rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_RequireDueChange.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_RequireDueChange.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_RequireDueChange.pm Mon Mar 13 20:07:14 2006
@@ -62,14 +62,11 @@
sub IsApplicable {
my $self = shift;
- if ($self->TransactionObj->Type eq 'DeleteLink' ||
- $self->TransactionObj->Type eq "AddLink" ||
- ($self->TransactionObj->Type eq "Set" and
- $self->TransactionObj->Field eq "Due")) {
- return 1;
- } else {
- return 0;
- }
+ my $type = $self->TransactionObj->Type;
+ return 1 if $type eq 'DeleteLink' || $type eq "AddLink";
+ return 1 if $type eq "Set" && $self->TransactionObj->Field eq "Due";
+
+ return 0;
}
eval "require RT::Condition::RTIR_RequireDueChange_Vendor";
Modified: rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_StaffResponse.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_StaffResponse.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/lib/RT/Condition/RTIR_StaffResponse.pm Mon Mar 13 20:07:14 2006
@@ -64,10 +64,10 @@
my $self = shift;
if ($self->TransactionObj->Type eq 'Correspond' &&
- $self->TicketObj->Owner eq $self->TransactionObj->Creator) {
- return 1;
+ $self->TicketObj->Owner eq $self->TransactionObj->Creator) {
+ return 1;
} else {
- return 0;
+ return 0;
}
}
More information about the Rt-commit
mailing list