X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fpart_event.html;h=9a244a8e1e79cb8806c4b92698cb9afdeae6ca20;hb=1fc8addc56f8daf12397da568eb1ac1b27fd3984;hp=4d52e7bc60edbce9ed21fcf18614dc86425a5312;hpb=c69e68e25b519c7f9d2ad47cb0ae6fc90c0f016c;p=freeside.git diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html index 4d52e7bc6..9a244a8e1 100644 --- a/httemplate/edit/process/part_event.html +++ b/httemplate/edit/process/part_event.html @@ -40,6 +40,7 @@ }; } elsif ( $info->{'type'} eq 'freq' ) { $value = '0' if !length($value) and !$info->{'allow_blank'}; + $value = '0' if $value =~ /[^\d]/; $value .= $params->{$cgi_field.'_units'} if length($value); } @@ -91,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() } ){