[freeside-commits] freeside/FS/FS cdr.pm,1.22,1.23
Ivan,,,
ivan at wavetail.420.am
Sun Nov 30 13:01:02 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv30229
Modified Files:
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.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- cdr.pm 6 Oct 2008 15:28:14 -0000 1.22
+++ cdr.pm 30 Nov 2008 21:01:00 -0000 1.23
@@ -554,7 +554,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