summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-08-06 16:56:24 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-08-06 16:56:24 +0200
commit684bee48e1356c46aee7c1366c6ac03629528231 (patch)
treea547bdbe2e0802ffaa007b41811a5ebd6da3490a /template/en/default/global
parentbaed5713d175eee3fe2aed9ee3afef916b4641d4 (diff)
downloadbugzilla-684bee48e1356c46aee7c1366c6ac03629528231.tar.gz
bugzilla-684bee48e1356c46aee7c1366c6ac03629528231.tar.xz
Bug 1183398: Mandatory custom fields block form submission if they are hidden and have no value
r=gerv a=dkl
Diffstat (limited to 'template/en/default/global')
-rw-r--r--template/en/default/global/textarea.html.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/en/default/global/textarea.html.tmpl b/template/en/default/global/textarea.html.tmpl
index f3e23dd3f..313329579 100644
--- a/template/en/default/global/textarea.html.tmpl
+++ b/template/en/default/global/textarea.html.tmpl
@@ -27,6 +27,8 @@
# defaultcontent: (optional) Default content for the textarea.
# mandatory: (optional) Boolean specifying whether or not the textarea
# is mandatory.
+ # field_hidden: (optional) True if the field is hidden. Only useful if
+ # the field is mandatory.
#%]
<textarea [% IF name %]name="[% name FILTER html %]"[% END %]
@@ -46,7 +48,7 @@
onFocus="this.rows=[% maxrows FILTER html %]"
[% END %]
[% IF mandatory %]
- aria-required="true" required
+ data-required="true" [% 'aria-required="true" required' UNLESS field_hidden %]
[% END %]
[% IF onchange %]
onchange="[% onchange FILTER html %]"