diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-08-26 23:36:17 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-08-26 23:36:17 +0200 |
commit | 48649030bf8536d8b9cf9df522c39438a06ec56c (patch) | |
tree | 750454c80df2ede981a5e3324db210decdc7fffd /template/en/default | |
parent | 4b3f99ad09407a6c145f39641257060035e71303 (diff) | |
download | bugzilla-48649030bf8536d8b9cf9df522c39438a06ec56c.tar.gz bugzilla-48649030bf8536d8b9cf9df522c39438a06ec56c.tar.xz |
Bug 1198659: Custom fields of type INTEGER should accept negative integers
r=gerv a=sgreen
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/bug/field.html.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 4d6019d01..87725b699 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -42,7 +42,10 @@ name="[% field.name FILTER html %]" value="[% value FILTER html %]" size="40" maxlength="[% constants.MAX_FREETEXT_LENGTH FILTER none %]" - [% IF field.type == constants.FIELD_TYPE_INTEGER %] pattern="\d+[% IF dontchange %]|[% dontchange FILTER html %][% END %]" [% END %] + [% IF field.type == constants.FIELD_TYPE_INTEGER %] + pattern="-?\d+[% IF dontchange %]|[% dontchange FILTER html %][% END %]" + title="The value must be a valid positive or negative integer" + [% END %] [% IF field.is_mandatory %] data-required="true" [% 'aria-required="true" required' UNLESS field_hidden %] [% END %]> |