From 6a7f8564f88170dbe675fd0a24ee6dd4734728c7 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Fri, 9 Nov 2018 17:20:57 -0500 Subject: [PATCH] RT# 81712 Disallow empty feepart for pkg_fee billing event action --- httemplate/edit/process/part_event.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html index 467d69ac3..9a244a8e1 100644 --- a/httemplate/edit/process/part_event.html +++ b/httemplate/edit/process/part_event.html @@ -92,6 +92,10 @@ $cgi->param('disabled', 'Y'); } + if ( $action eq 'pkg_fee' && !$actionfields{feepart} ) { + return "Select a Fee Definition to use this Event Action"; + } + my $balance_age_rx = qr/^(condition.+)\.balance_age\.age$/; foreach my $param ( keys %{ $cgi->Vars() } ){ -- 2.11.0