From 339f0d29184395a0342c4f3a3febba79cd76fb11 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 21 Jan 2014 14:06:03 -0800 Subject: [PATCH] fix adding new one-time charges, from #26282 --- httemplate/edit/quick-charge.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 7b88bcce9..e141e7d22 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -459,6 +459,6 @@ if ( $cust_pkg ) { # set defaults } } -my $billed = $cust_pkg->get('setup') ? 1 : 0; +my $billed = ($cust_pkg and $cust_pkg->get('setup')) ? 1 : 0; -- 2.11.0