[Rt-commit] r4248 - in rtir/branches/1.9-EXPERIMENTAL: .
lib/RT/Action
ruz at bestpractical.com
ruz at bestpractical.com
Sun Dec 4 19:09:55 EST 2005
Author: ruz
Date: Sun Dec 4 19:09:54 2005
New Revision: 4248
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_SetStartsByBizHours.pm
Log:
r427 at cubic-pc: cubic | 2005-12-05 03:09:10 +0300
r406 at cubic-pc: cubic | 2005-12-05 03:03:45 +0300
* minor
Modified: rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_SetStartsByBizHours.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_SetStartsByBizHours.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_SetStartsByBizHours.pm Sun Dec 4 19:09:54 2005
@@ -46,9 +46,7 @@
#
package RT::Action::RTIR_SetStartsByBizHours;
-
use strict;
-
use base 'RT::Action::RTIR';
=head2 Prepare
@@ -57,19 +55,15 @@
=cut
-
sub Prepare {
my $self = shift;
- if ($self->TicketObj->StartsObj->Unix < 0) {
- return 1;
- } else {
- return 0;
+ if ($self->TicketObj->StartsObj->Unix > 0) {
+ return 0;
}
+ return 1;
}
-# {{{ sub Commit
-
=head2 Commit
Look up the SLA and set the Starts and Due dates accordingly.
@@ -91,8 +85,6 @@
return 1;
}
-# }}}
-
eval "require RT::Action::RTIR_SetStartsByBizHours_Vendor";
die $@ if ($@ && $@ !~ qr{^Can't locate RT/Action/RTIR_SetStartsByBizHours_Vendor.pm});
eval "require RT::Action::RTIR_SetStartsByBizHours_Local";
More information about the Rt-commit
mailing list