[freeside-commits] freeside/bin cdr.reimport,1.2,1.3
Ivan,,,
ivan at wavetail.420.am
Sun May 1 13:02:40 PDT 2011
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv14701/bin
Modified Files:
cdr.reimport
Log Message:
cdr reimporting, RT#12181
Index: cdr.reimport
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/cdr.reimport,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- cdr.reimport 1 May 2011 19:56:30 -0000 1.2
+++ cdr.reimport 1 May 2011 20:02:38 -0000 1.3
@@ -34,7 +34,7 @@
$new++;
return;
}
- die "too many matches found!" if scalar(@exists) > 1;
+ return "too many matches found!" if scalar(@exists) > 1;
my $exists = $exists[0];
if ( $exists->freesidestatus ) {
@@ -43,9 +43,11 @@
} else {
$rep++;
my $error = $exists->delete;
- die $error if $error;
+ return $error if $error;
}
+ return '';
+
};
my $error = FS::cdr::batch_import( {
More information about the freeside-commits
mailing list