[freeside-commits] branch FREESIDE_4_BRANCH updated. 0b0a8f300458a6bf2563f007a754e9d2d69d0835
Ivan Kohler
ivan at freeside.biz
Wed Feb 13 10:26:19 PST 2019
The branch, FREESIDE_4_BRANCH has been updated
via 0b0a8f300458a6bf2563f007a754e9d2d69d0835 (commit)
from 747dacf1b1d4e623b63ca6e2eda5be454612441a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 0b0a8f300458a6bf2563f007a754e9d2d69d0835
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Feb 13 10:26:18 2019 -0800
fix skip_old when date has leading 0, RT#81480
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm
index 74deb8bb3..87c3247ad 100644
--- a/FS/FS/part_pkg/voip_cdr.pm
+++ b/FS/FS/part_pkg/voip_cdr.pm
@@ -679,7 +679,7 @@ sub check_chargable {
and $cdr->max_callers <= $self->option_cacheable('skip_max_callers');
return "calldate < ". $self->option_cacheable('skip_old')
- if $self->option_cacheable('skip_old')
+ if length($self->option_cacheable('skip_old'))
&& $cdr->calldate_unix < str2time($self->option_cacheable('skip_old'));
#all right then, rate it
-----------------------------------------------------------------------
Summary of changes:
FS/FS/part_pkg/voip_cdr.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the freeside-commits
mailing list