projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
796183f
)
finish upgrade even if a void_usernum cannot be determined for some records, RT#13600
author
ivan
<ivan>
Fri, 22 Jul 2011 17:27:11 +0000
(17:27 +0000)
committer
ivan
<ivan>
Fri, 22 Jul 2011 17:27:11 +0000
(17:27 +0000)
FS/FS/cust_pay_void.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pay_void.pm
b/FS/FS/cust_pay_void.pm
index
0b89591
..
1e22e1c
100644
(file)
--- a/
FS/FS/cust_pay_void.pm
+++ b/
FS/FS/cust_pay_void.pm
@@
-258,7
+258,8
@@
sub _upgrade_data { # class method
foreach my $cust_pay_void (qsearch('cust_pay_void', {'void_usernum' => ''})) {
$sth->execute($cust_pay_void->paynum) or die $sth->errstr;
foreach my $cust_pay_void (qsearch('cust_pay_void', {'void_usernum' => ''})) {
$sth->execute($cust_pay_void->paynum) or die $sth->errstr;
- my $usernum = $sth->fetchrow_arrayref->[0] or next;
+ my $row = $sth->fetchrow_arrayref;
+ my $usernum = $row ? $row->[0] : '';
if ( $usernum ) {
$cust_pay_void->void_usernum($usernum);
my $error = $cust_pay_void->replace;
if ( $usernum ) {
$cust_pay_void->void_usernum($usernum);
my $error = $cust_pay_void->replace;