summaryrefslogtreecommitdiff
path: root/FS/FS/Upgrade.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-03-17 00:16:35 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-03-17 00:32:16 -0500
commitf40a061c3d2bfc3d988d4fd4e8e15211e8d9a291 (patch)
treea1449f4e5b7e080896fa619f71db5f9a22821d95 /FS/FS/Upgrade.pm
parentfdff077d075af80c623bf03ce65cca4af0ebdde5 (diff)
RT#28648: Unsuspend when past due balance is paid [cleanup for backport]
Diffstat (limited to 'FS/FS/Upgrade.pm')
-rw-r--r--FS/FS/Upgrade.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index b7768a6..82fb800 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -171,6 +171,11 @@ If you need to continue using the old Form 477 report, turn on the
$conf->set('password-generated-characters', $pw_set);
}
+ if ($conf->exists('unsuspendauto') && !$conf->config('unsuspend_balance')) {
+ $conf->set('unsuspend_balance','Zero');
+ $conf->delete('unsuspendauto');
+ }
+
enable_banned_pay_pad() unless length($conf->config('banned_pay-pad'));
}