[freeside-commits] branch FREESIDE_3_BRANCH updated. 480fbd922ae2c943c7763012a08fb5e659ab94a7

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


The branch, FREESIDE_3_BRANCH has been updated
       via  480fbd922ae2c943c7763012a08fb5e659ab94a7 (commit)
      from  81f7d2d735b1f1b539224ec3b90ddf6af41b648a (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 480fbd922ae2c943c7763012a08fb5e659ab94a7
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Oct 21 13:05:48 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 be57017e0..95a53420e 100644
--- a/FS/FS/cust_main_Mixin.pm
+++ b/FS/FS/cust_main_Mixin.pm
@@ -814,6 +814,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