projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
some old databases may have 'hanging' cust_credit records; we don't want to abort...
[freeside.git]
/
FS
/
FS
/
cust_credit.pm
diff --git
a/FS/FS/cust_credit.pm
b/FS/FS/cust_credit.pm
index
4c94e15
..
6cbe1d0
100644
(file)
--- a/
FS/FS/cust_credit.pm
+++ b/
FS/FS/cust_credit.pm
@@
-458,7
+458,8
@@
sub _upgrade_data { # class method
$cust_credit->setfield('reason', '');
my $error = $cust_credit->replace;
- die "error inserting $self into database: $error\n"
+ warn "*** WARNING: error replacing reason in $self ".
+ $self->crednum. ": $error ***\n"
if $error;
}
}