[freeside-commits] branch master updated. 5224948de7b1cbc90a2bc7f3f430bc260dd7371e

Ivan Kohler ivan at freeside.biz
Mon Oct 21 13:07:34 PDT 2019


The branch, master has been updated
       via  5224948de7b1cbc90a2bc7f3f430bc260dd7371e (commit)
      from  79c8be3bd0c5db42794b36bf5b5dd25addba67cb (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 5224948de7b1cbc90a2bc7f3f430bc260dd7371e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Oct 21 13:05:38 2019 -0700

    release held packages when automatically unsuspending, RT#83847

diff --git a/FS/FS/cust_main_Mixin.pm b/FS/FS/cust_main_Mixin.pm
index b5434e516..921ef8f5e 100644
--- a/FS/FS/cust_main_Mixin.pm
+++ b/FS/FS/cust_main_Mixin.pm
@@ -836,6 +836,8 @@ sub unsuspend_balance {
     my @errors = $cust_main->unsuspend(
 	           'reason_type' => $conf->config('unsuspend_reason_type')
 	         );
+
+    push @errors, $cust_main->release_hold if $conf->exists('unsuspend-unhold');
     # side-fx with nested transactions?  upstack rolls back?
     warn "WARNING:Errors unsuspending customer ". $cust_main->custnum. ": ".
          join(' / ', @errors)

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cust_main_Mixin.pm | 2 ++
 1 file changed, 2 insertions(+)




More information about the freeside-commits mailing list