[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.8-16-g5571fcc
Alex Vandiver
alexmv at bestpractical.com
Tue Oct 14 18:50:09 EDT 2014
The branch, 4.2-trunk has been updated
via 5571fcc2a84b118be596574d7d28c2b52e5fb24b (commit)
from 316ec8f1531b82e1d82da9849f62cc8b5832039b (commit)
Summary of changes:
lib/RT/Condition/BeforeDue.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit 5571fcc2a84b118be596574d7d28c2b52e5fb24b
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Tue Oct 14 16:21:02 2014 -0400
Allow upper-case "D" to signify days, in addition to "d"
Fixes: #30449
diff --git a/lib/RT/Condition/BeforeDue.pm b/lib/RT/Condition/BeforeDue.pm
index fa7f364..3b6a5f4 100644
--- a/lib/RT/Condition/BeforeDue.pm
+++ b/lib/RT/Condition/BeforeDue.pm
@@ -78,7 +78,7 @@ sub IsApplicable {
# and 3 minutes and 4 seconds.
my %e;
foreach (qw(d h m s)) {
- my @vals = $self->Argument =~ m/(\d+)$_/;
+ my @vals = $self->Argument =~ m/(\d+)$_/i;
$e{$_} = pop @vals || 0;
}
my $elapse = $e{'d'} * 24*60*60 + $e{'h'} * 60*60 + $e{'m'} * 60 + $e{'s'};
-----------------------------------------------------------------------
More information about the rt-commit
mailing list