diff options
| author | ivan <ivan> | 2009-12-03 07:38:07 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2009-12-03 07:38:07 +0000 | 
| commit | 224eccd2ca34e1ba66933da49f91bb4ad1e2ba16 (patch) | |
| tree | 62d97ac91f306da509bf52ef0079402298c75324 /FS | |
| parent | f15bd2ccea5f19283c1e2c825d86409724368f6d (diff) | |
fix startdate in sansay CDR import (and skip blank lines), RT#6801
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/Record.pm | 2 | ||||
| -rw-r--r-- | FS/FS/cdr/sansay.pm | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index e02a2cff8..b05fb3e90 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1767,6 +1767,8 @@ sub batch_import {        last unless scalar(@buffer);        $line = shift(@buffer); +      next if $line =~ /^\s*$/; #skip empty lines +        $parser->parse($line) or do {          $dbh->rollback if $oldAutoCommit;          return "can't parse: ". $parser->error_input(); diff --git a/FS/FS/cdr/sansay.pm b/FS/FS/cdr/sansay.pm index a20cff1c8..8087c570e 100644 --- a/FS/FS/cdr/sansay.pm +++ b/FS/FS/cdr/sansay.pm @@ -64,7 +64,7 @@ use FS::cdr qw( _cdr_date_parser_maker _cdr_min_parser_maker );      #Start Time of Date  32 Indicates Time of Date when the call      #                       entered the system -    _cdr_date_parser_maker('startddate'),  +    _cdr_date_parser_maker('startdate'),       #Answer Time of Date 32 Indicates TOD when the call was      #                       answered | 
