summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-05-28 00:07:20 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-05-28 00:07:20 -0400
commit7e2111f1ebc063df6a0afbb5903ae17a96ca3bb8 (patch)
treea1737ff924a6e3832e0abc3d6b231070f4ec09b6 /FS/FS
parent0e4e128273e2e9ade0073c7c8a71fe95b9e19bc7 (diff)
RT# 24643 - fixed error in saving waive setup fee flag when not selected
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_pkg.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index c70a6795f..7d683235b 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -2372,7 +2372,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