From: ivan Date: Sat, 9 Apr 2011 00:43:22 +0000 (+0000) Subject: should fix qis's intermittent backtraces when using an (ancient) counter-based cust_p... X-Git-Tag: freeside_2_1_3~332 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=1610d2306850be93cd7caa56300e26c39d814785;p=freeside.git should fix qis's intermittent backtraces when using an (ancient) counter-based cust_pay.paynum, RT#12317 --- diff --git a/FS/FS/cust_main/Billing_Realtime.pm b/FS/FS/cust_main/Billing_Realtime.pm index 947591226..08e31c699 100644 --- a/FS/FS/cust_main/Billing_Realtime.pm +++ b/FS/FS/cust_main/Billing_Realtime.pm @@ -817,6 +817,7 @@ sub _realtime_bop_result { if ( $error2 ) { # gah. but at least we have a record of the state we had to abort in # from cust_pay_pending now. + $dbh->rollback or die $dbh->errstr if $oldAutoCommit; my $e = "WARNING: $options{method} captured but payment not recorded -". " error inserting payment (". $payment_gateway->gateway_module. "): $error2".