projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1feb4dc
)
PBXware CDRs: strip trailing non-numeric stuff from src/dst numbers, #34575
author
Mark Wells
<mark@freeside.biz>
Wed, 13 May 2015 00:16:08 +0000
(17:16 -0700)
committer
Mark Wells
<mark@freeside.biz>
Wed, 13 May 2015 00:16:08 +0000
(17:16 -0700)
FS/FS/part_export/pbxware.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/pbxware.pm
b/FS/FS/part_export/pbxware.pm
index
3da4c2a
..
36b1a2a
100644
(file)
--- a/
FS/FS/part_export/pbxware.pm
+++ b/
FS/FS/part_export/pbxware.pm
@@
-140,6
+140,11
@@
sub import_cdrs {
uniqueid => $uniqueid,
);
@hash{@names} = @$row;
+ # strip non-numeric junk that sometimes gets appended to these (it
+ # causes problems creating Freeside detail records)
+ foreach (qw(src dst)) {
+ $hash{$_} =~ s/\D*$//;
+ }
my $cdr = FS::cdr->new(\%hash);
$error = $cdr->insert;