X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=lib%2FRT%2FCondition%2FOverdue.pm;h=444e373e1b4864898bae10f987fc8e74ac265335;hb=c33a4027369d767810c2d24ad54d6e61599ff823;hp=547aea25bcd391338dfab4372597b6aae662a437;hpb=403d7b0b0eb7d2535f279adb134aecb4fde2438d;p=usit-rt.git diff --git a/lib/RT/Condition/Overdue.pm b/lib/RT/Condition/Overdue.pm index 547aea2..444e373 100644 --- a/lib/RT/Condition/Overdue.pm +++ b/lib/RT/Condition/Overdue.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -70,12 +70,12 @@ If the due date is before "now" return true 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 { - return(undef); + return(undef); } }