From 8736115c9857c7779baf5d4f54a06a72d6f5ed06 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