optimize customer list (fix option caching in 3.x), RT#20173
[freeside.git] / FS / FS / Upgrade.pm
index 0ac7a4e..2a480f8 100644 (file)
@@ -165,6 +165,11 @@ If you need to continue using the old Form 477 report, turn on the
     $conf->delete('voip-cust_email_csv_cdr') ;
   }
 
+  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'));
 
 }