projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
lib
/
RT
/
Condition
/
Overdue.pm
diff --git
a/rt/lib/RT/Condition/Overdue.pm
b/rt/lib/RT/Condition/Overdue.pm
index
3bf79a1
..
8bf570d
100644
(file)
--- a/
rt/lib/RT/Condition/Overdue.pm
+++ b/
rt/lib/RT/Condition/Overdue.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
9
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)
@@
-59,6
+59,7
@@
Returns true if the ticket we're operating on is overdue
package RT::Condition::Overdue;
use base 'RT::Condition';
use strict;
package RT::Condition::Overdue;
use base 'RT::Condition';
use strict;
+use warnings;
=head2 IsApplicable
=head2 IsApplicable
@@
-69,12
+70,12
@@
If the due date is before "now" return true
sub IsApplicable {
my $self = shift;
sub IsApplicable {
my $self = shift;
- if ($self->TicketObj->DueObj->
Unix > 0
and
- $self->TicketObj->DueObj->Unix < time()) {
- return(1);
- }
+ if ($self->TicketObj->DueObj->
IsSet
and
+
$self->TicketObj->DueObj->Unix < time()) {
+
return(1);
+ }
else {
else {
- return(undef);
+
return(undef);
}
}
}
}