diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-08-26 23:37:28 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-08-26 23:37:28 +0200 |
commit | ea25c5cf646763926a8c6a5dfb04bd356e76905b (patch) | |
tree | 8591a4ce71d9044eaf7f2aeaf156f47c79a01034 /template/en/default/bug | |
parent | 7d3c1b0d13c8d060c220bcccbce705f05be398d0 (diff) | |
download | bugs-ea25c5cf646763926a8c6a5dfb04bd356e76905b.tar bugs-ea25c5cf646763926a8c6a5dfb04bd356e76905b.tar.gz bugs-ea25c5cf646763926a8c6a5dfb04bd356e76905b.tar.bz2 bugs-ea25c5cf646763926a8c6a5dfb04bd356e76905b.tar.xz bugs-ea25c5cf646763926a8c6a5dfb04bd356e76905b.zip |
Bug 1198659: Custom fields of type INTEGER should accept negative integers
r=gerv a=sgreen
Diffstat (limited to 'template/en/default/bug')
-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 1eceaf74c..cdf15fbd8 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 %]> |