release held packages when automatically unsuspending, RT#83847
authorIvan Kohler <ivan@freeside.biz>
Mon, 21 Oct 2019 20:20:04 +0000 (13:20 -0700)
committerIvan Kohler <ivan@freeside.biz>
Mon, 21 Oct 2019 20:20:04 +0000 (13:20 -0700)
FS/FS/cust_main_Mixin.pm

index 921ef8f..ba6fda1 100644 (file)
@@ -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)