aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-04 21:15:44 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-05 08:00:43 +0100
commit15d5b4d479e75823ad6cb1b323a26498a6ef3cf8 (patch)
treee6c18488adf9c25efcb7195b4e114f34a06d32a6
parente21550604e139f2caa58f0a12bc8cabc2094ec39 (diff)
Stop errors from JS validator due to form in form.
The outer form is using the JS validator, which means the validator is called for any event on the inner form fields. If the inner form isn't using the JS validator, it errors as it assumes the closest form has a validator object on it. Having the inner form use the JS validator shouldn't have any effect.
-rw-r--r--CHANGELOG.md1
-rw-r--r--templates/web/base/report/_inspect.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 59d9a26b5..4d54eafb2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
* Unreleased
- Bugfixes:
- Set up action scheduled field when report loaded. #1789
+ - Stop errors from JS validator due to form in form.
* v2.1.1 (3rd August 2017)
- Email improvements:
diff --git a/templates/web/base/report/_inspect.html b/templates/web/base/report/_inspect.html
index 8745e5c31..bf57cb858 100644
--- a/templates/web/base/report/_inspect.html
+++ b/templates/web/base/report/_inspect.html
@@ -6,7 +6,7 @@
[% INCLUDE 'errors.html' %]
- <form id="report_inspect_form" method="post" action="[% c.uri_for( '/report', problem.id ) %]">
+ <form id="report_inspect_form" method="post" action="[% c.uri_for( '/report', problem.id ) %]" class="validate">
<div class="inspect-section">
<p>