]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365293: [mod_perl] click OR, AND or ADD... button in bool charts initiates search
authormkanat%bugzilla.org <>
Sat, 30 Dec 2006 08:45:07 +0000 (08:45 +0000)
committermkanat%bugzilla.org <>
Sat, 30 Dec 2006 08:45:07 +0000 (08:45 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=justdave

template/en/default/search/boolean-charts.html.tmpl

index 6f63f64bb3ab321302401962214e210770b8c740..90234d2b4558486047cea072be3ae5ace383537e 100644 (file)
@@ -52,7 +52,7 @@
 
 [%# Whoever wrote the original version of boolean charts had a seriously twisted mind %]
 
-[% jsmagic = "onclick=\"document.forms[0].action='query.cgi#chart'; document.forms[0].method='POST'; return 1;\"" %]
+[% jsmagic = "onclick=\"this.form.action='query.cgi#chart'; this.form.method='POST'; return 1;\"" %]
 
 [% FOREACH chart = default.charts %]
   [% chartnum = loop.count - 1 %]