projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.0.23
[freeside.git]
/
rt
/
lib
/
RT
/
Condition
/
BeforeDue.pm
diff --git
a/rt/lib/RT/Condition/BeforeDue.pm
b/rt/lib/RT/Condition/BeforeDue.pm
index
cb19ccb
..
9ff641b
100644
(file)
--- a/
rt/lib/RT/Condition/BeforeDue.pm
+++ b/
rt/lib/RT/Condition/BeforeDue.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
1
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-52,6
+52,7
@@
use base 'RT::Condition';
use RT::Date;
use strict;
use RT::Date;
use strict;
+use warnings;
sub IsApplicable {
my $self = shift;
sub IsApplicable {
my $self = shift;
@@
-65,7
+66,7
@@
sub IsApplicable {
}
my $elapse = $e{'d'} * 24*60*60 + $e{'h'} * 60*60 + $e{'m'} * 60 + $e{'s'};
}
my $elapse = $e{'d'} * 24*60*60 + $e{'h'} * 60*60 + $e{'m'} * 60 + $e{'s'};
- my $cur =
new RT::Date( $RT::
SystemUser );
+ my $cur =
RT::Date->new( RT->
SystemUser );
$cur->SetToNow();
my $due = $self->TicketObj->DueObj;
return (undef) if $due->Unix <= 0;
$cur->SetToNow();
my $due = $self->TicketObj->DueObj;
return (undef) if $due->Unix <= 0;
@@
-78,9
+79,6
@@
sub IsApplicable {
}
}
}
}
-eval "require RT::Condition::BeforeDue_Vendor";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/BeforeDue_Vendor.pm});
-eval "require RT::Condition::BeforeDue_Local";
-die $@ if ($@ && $@ !~ qr{^Can't locate RT/Condition/BeforeDue_Local.pm});
+RT::Base->_ImportOverlays();
1;
1;