From f67629b05c47f52090c7e8de2a19a5c33a7f4846 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Mon, 28 May 2018 00:07:20 -0400 Subject: RT# 24643 - fixed error in saving waive setup fee flag when not selected --- FS/FS/cust_pkg.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'FS') diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 4f6910eac..e1fa2ae93 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2379,7 +2379,8 @@ sub change { $same_pkgpart = 0; } - $self->set('waive_setup', $opt->{'waive_setup'}) if $opt->{'waive_setup'}; + if ($opt->{'waive_setup'}) { $self->set('waive_setup', $opt->{'waive_setup'}) } + else { $self->set('waive_setup', ''); } # Before going any further here: if the package is still in the pre-setup # state, it's safe to modify it in place. No need to charge/credit for -- cgit v1.2.1