projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1ef297
)
cdr reimporting, RT#12181
author
ivan
<ivan>
Sun, 1 May 2011 20:02:38 +0000
(20:02 +0000)
committer
ivan
<ivan>
Sun, 1 May 2011 20:02:38 +0000
(20:02 +0000)
bin/cdr.reimport
patch
|
blob
|
history
diff --git
a/bin/cdr.reimport
b/bin/cdr.reimport
index
1b2f198
..
51c62d2
100644
(file)
--- a/
bin/cdr.reimport
+++ b/
bin/cdr.reimport
@@
-34,7
+34,7
@@
my $cb = sub {
$new++;
return;
}
$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 ) {
my $exists = $exists[0];
if ( $exists->freesidestatus ) {
@@
-43,9
+43,11
@@
my $cb = sub {
} else {
$rep++;
my $error = $exists->delete;
} else {
$rep++;
my $error = $exists->delete;
-
die
$error if $error;
+
return
$error if $error;
}
}
+ return '';
+
};
my $error = FS::cdr::batch_import( {
};
my $error = FS::cdr::batch_import( {