[freeside-commits] branch FREESIDE_3_BRANCH updated. 6a7573c32518c6c124c91f61dbd950ea23adaae7
Jonathan Prykop
jonathan at 420.am
Tue Jan 3 19:01:39 PST 2017
The branch, FREESIDE_3_BRANCH has been updated
via 6a7573c32518c6c124c91f61dbd950ea23adaae7 (commit)
from cf9e2c1748c2790e3ed5bfb27ea892a402fcb9a9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6a7573c32518c6c124c91f61dbd950ea23adaae7
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Wed Dec 28 13:57:43 2016 -0600
73085: Enable credit card/ach encryption on a live system [handling for custnum-less cust_pay_pending]
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 2343fc6..551f8b3 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -5787,6 +5787,9 @@ sub queueable_upgrade {
# window for possible conflict is practically nonexistant,
# but just in case...
$record = $record->select_for_update;
+ if (!$record->custnum && $table eq 'cust_pay_pending') {
+ $record->set('custnum_pending',1);
+ }
my $error = $record->replace;
die $error if $error;
}
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cust_main.pm | 3 +++
1 file changed, 3 insertions(+)
More information about the freeside-commits
mailing list