summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/part_event.html
diff options
context:
space:
mode:
authorroot <root@debian8-7-1>2017-02-17 09:37:06 -0500
committerroot <root@debian8-7-1>2017-02-17 09:37:06 -0500
commitbf951595745feebeebc8acf91a5cf846c22c6533 (patch)
treeedfd9dbf0dd1d61d9c0f2ddcfd5d9bbc474f84f5 /httemplate/edit/process/part_event.html
parentc69e68e25b519c7f9d2ad47cb0ae6fc90c0f016c (diff)
RT# 21110 Unparsable age error. Added javascript to validate field prior to submitting the form. Also place checked prior entry in database.
Diffstat (limited to 'httemplate/edit/process/part_event.html')
-rw-r--r--httemplate/edit/process/part_event.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/httemplate/edit/process/part_event.html b/httemplate/edit/process/part_event.html
index 4d52e7b..467d69a 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);
}