From 3d9bb75680d19cb00307e57f4df2ac1c3514cd85 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 21 Oct 2019 13:20:04 -0700 Subject: [PATCH] release held packages when automatically unsuspending, RT#83847 --- FS/FS/cust_main_Mixin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm index 921ef8f5e..ba6fda146 100644 --- a/FS/FS/cust_main_Mixin.pm +++ b/FS/FS/cust_main_Mixin.pm @@ -837,7 +837,7 @@ sub unsuspend_balance { 'reason_type' => $conf->config('unsuspend_reason_type') ); - push @errors, $cust_main->release_hold if $conf->exists('unsuspend-unhold'); + push @errors, $cust_main->release_hold; # side-fx with nested transactions? upstack rolls back? warn "WARNING:Errors unsuspending customer ". $cust_main->custnum. ": ". join(' / ', @errors) -- 2.11.0