[freeside-commits] freeside/FS/FS cdr.pm,1.5.2.11,1.5.2.12
Ivan,,,
ivan at wavetail.420.am
Sun Nov 30 13:01:03 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv30236
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cdr.pm
Log Message:
_cdr_min_parser_maker fix for correct setting of duration/billsec with simple & simple2 rate plans
Index: cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr.pm,v
retrieving revision 1.5.2.11
retrieving revision 1.5.2.12
diff -u -d -r1.5.2.11 -r1.5.2.12
--- cdr.pm 6 Oct 2008 15:28:15 -0000 1.5.2.11
+++ cdr.pm 30 Nov 2008 21:01:01 -0000 1.5.2.12
@@ -550,7 +550,7 @@
sub _cdr_min_parser_maker {
my $field = shift;
my @fields = ref($field) ? @$field : ($field);
- @fields = qw( billsec duration ) unless scalar(@fields);
+ @fields = qw( billsec duration ) unless scalar(@fields) && $fields[0];
return sub {
my( $cdr, $min ) = @_;
my $sec = eval { _cdr_min_parse($min) };
More information about the freeside-commits
mailing list