From 2b813b0948fe96f65e40c47e92edf99314e8d25e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Feb 2017 09:37:06 -0500 Subject: RT# 21110 Unparsable age error. Added javascript to validate field prior to submitting the form. Also place checked prior entry in database. --- httemplate/edit/process/part_event.html | 1 + 1 file changed, 1 insertion(+) (limited to 'httemplate/edit/process') diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html index 4d52e7bc6..467d69ac3 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); } -- cgit v1.2.1