From f40a061c3d2bfc3d988d4fd4e8e15211e8d9a291 Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Thu, 17 Mar 2016 00:16:35 -0500 Subject: RT#28648: Unsuspend when past due balance is paid [cleanup for backport] --- FS/FS/Upgrade.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'FS/FS/Upgrade.pm') 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')); } -- cgit v1.1