RT# 81712 Disallow empty feepart for pkg_fee billing event action
authorMitch Jackson <mitch@freeside.biz>
Fri, 9 Nov 2018 22:20:57 +0000 (17:20 -0500)
committerMitch Jackson <mitch@freeside.biz>
Fri, 9 Nov 2018 22:35:08 +0000 (17:35 -0500)
httemplate/edit/process/part_event.html

index 467d69a..9a244a8 100644 (file)
         $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() } ){