[freeside-commits] branch master updated. 588a331885d89bf8eb4f79ab4822e15c0e917329
Jeremy Davis
jeremyd at 420.am
Mon Jun 1 08:56:41 PDT 2015
The branch, master has been updated
via 588a331885d89bf8eb4f79ab4822e15c0e917329 (commit)
from 9573631ec3299ced290115ca0cb71690917bb7e2 (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 588a331885d89bf8eb4f79ab4822e15c0e917329
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Mon Jun 1 10:42:33 2015 -0400
Strip white space from numbers
diff --git a/FS/FS/cdr/ispphone.pm b/FS/FS/cdr/ispphone.pm
index 2817d53..c2ba186 100644
--- a/FS/FS/cdr/ispphone.pm
+++ b/FS/FS/cdr/ispphone.pm
@@ -15,8 +15,16 @@ use Date::Parse;
'import_fields' => [
'accountcode', # Accountcode
- 'src', # Form
- 'dst', # To
+ sub { my ($cdr, $src) = @_;
+ $src =~ s/^\s+//;
+ $cdr->set('src', $src);
+
+ }, # Form
+ sub { my ($cdr, $dst) = @_;
+ $dst =~ s/^\s+//;
+ $cdr->set('dst', $dst);
+
+ }, # To
skip(1), # Country
'upstream_dst_regionname', # Description
_cdr_date_parser_maker('startdate'), #DateTime
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr/ispphone.pm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list