From 684bee48e1356c46aee7c1366c6ac03629528231 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 6 Aug 2015 16:56:24 +0200 Subject: Bug 1183398: Mandatory custom fields block form submission if they are hidden and have no value r=gerv a=dkl --- template/en/default/bug/field.html.tmpl | 30 ++++++++++++++++----------- template/en/default/global/textarea.html.tmpl | 4 +++- 2 files changed, 21 insertions(+), 13 deletions(-) (limited to 'template') diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index bfd385f9d..85f7aea33 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -43,13 +43,17 @@ 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 %] - [% ' aria-required="true" required' IF field.is_mandatory %]> + [% IF field.is_mandatory %] + data-required="true" [% 'aria-required="true" required' UNLESS field_hidden %] + [% END %]> [% CASE [constants.FIELD_TYPE_DATETIME, constants.FIELD_TYPE_DATE] %] [% size = (field.type == constants.FIELD_TYPE_DATE) ? 10 : 20 %]