summaryrefslogtreecommitdiff
path: root/FS/FS/Upgrade.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-06-03 02:04:52 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-06-03 02:04:52 -0500
commit1efab29ccbb2aa15bcb94f1cb46069f32dcabf9f (patch)
tree1d3b651078ce8a900ada996728defc763c7d68f1 /FS/FS/Upgrade.pm
parent022b6591c328532097d3cbbc2374d6b7d8221a4b (diff)
RT#42398: still using cust_main.payby in FS::UI::Web::cust_sql_fields (v4+)
Diffstat (limited to 'FS/FS/Upgrade.pm')
-rw-r--r--FS/FS/Upgrade.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index aa0498e49..a374d391d 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -170,6 +170,14 @@ If you need to continue using the old Form 477 report, turn on the
$conf->delete('unsuspendauto');
}
+ if ($conf->config('cust-fields') =~ / \| Payment Type/) {
+ my $cust_fields = $conf->config('cust-fields');
+ # so we can potentially use 'Payment Types' or somesuch in the future
+ $cust_fields =~ s/ \| Payment Type( \|)/$1/;
+ $cust_fields =~ s/ \| Payment Type$//;
+ $conf->set('cust-fields',$cust_fields);
+ }
+
enable_banned_pay_pad() unless length($conf->config('banned_pay-pad'));
}