[freeside-commits] branch FREESIDE_3_BRANCH updated. 38f947640357484d1f38c2cb8ffe1924446ede73
Jeremy Davis
jeremyd at 420.am
Mon Jun 1 08:57:10 PDT 2015
The branch, FREESIDE_3_BRANCH has been updated
via 38f947640357484d1f38c2cb8ffe1924446ede73 (commit)
from 4fce93385377a02eb16b27cc18e1ca240fc11703 (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 38f947640357484d1f38c2cb8ffe1924446ede73
Author: Jeremy Davis <jeremyd at freeside.biz>
Date: Mon Jun 1 10:43:18 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