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
committerChristopher Burger <burgerc@freeside.biz>2017-05-24 12:13:48 -0400
commit2b813b0948fe96f65e40c47e92edf99314e8d25e (patch)
tree74afadd050eca90b8f699b5bfaa46f76ea371f89 /httemplate/edit/process/part_event.html
parent0f87b832ccbd061752abf034526e1c3bbf7a89ba (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 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);
}