[freeside-commits] freeside/bin cdr.reimport,1.1.2.3,1.1.2.4
Ivan,,,
ivan at wavetail.420.am
Sun May 1 13:02:41 PDT 2011
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv14712/bin
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cdr.reimport
Log Message:
cdr reimporting, RT#12181
Index: cdr.reimport
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/cdr.reimport,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -w -d -r1.1.2.3 -r1.1.2.4
--- cdr.reimport 1 May 2011 19:56:31 -0000 1.1.2.3
+++ cdr.reimport 1 May 2011 20:02:39 -0000 1.1.2.4
@@ -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