[freeside-commits] branch master updated. 064be49dc8f265aabe40efc681116472ec647528

Ivan Kohler ivan at freeside.biz
Wed Feb 13 10:26:16 PST 2019


The branch, master has been updated
       via  064be49dc8f265aabe40efc681116472ec647528 (commit)
      from  92e8ec0e2092fef7bfb126f8d87acac83bbca8eb (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 064be49dc8f265aabe40efc681116472ec647528
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Feb 13 10:26:15 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