aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-08-06 16:57:45 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-08-06 16:57:45 +0200
commit6f616e1306bf385d0f8e1190c1a02aa957e1ca89 (patch)
treebd5b4fe20163584e2e9faf1369d22685989945e3 /template/en/default/global
parenta2ae154592af0131e13f935802839679e4e88924 (diff)
downloadbugs-6f616e1306bf385d0f8e1190c1a02aa957e1ca89.tar
bugs-6f616e1306bf385d0f8e1190c1a02aa957e1ca89.tar.gz
bugs-6f616e1306bf385d0f8e1190c1a02aa957e1ca89.tar.bz2
bugs-6f616e1306bf385d0f8e1190c1a02aa957e1ca89.tar.xz
bugs-6f616e1306bf385d0f8e1190c1a02aa957e1ca89.zip
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 %]"