aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-16 01:55:20 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-16 01:55:20 +0100
commit23cd6fe15efcec583429a2650fd2ffc4a2d8049b (patch)
treecce8b3f4c9e48eeedc12abda90757d1f88fc39db /data/lib/bzpage.js
parent210d5ebb2c784f0a85653db94d405452c19fb433 (diff)
downloadbugzilla-triage-23cd6fe15efcec583429a2650fd2ffc4a2d8049b.tar.gz
Fix local query, the first table is numbered 0, not 1.
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r--data/lib/bzpage.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index 1a3e6b4..c256228 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -722,7 +722,7 @@ function getSelection () {
* @param product (optional) string with the product name, if undefined,
* search in all products
* @return None
- *
+ *
*/
function queryInNewTab(text, component, product) {
var urlStr = "https://" + window.location.hostname + "/buglist.cgi?query_format=advanced";
@@ -747,11 +747,11 @@ function queryInNewTab(text, component, product) {
// for further investigative searches
if (text) {
text = encodeURIComponent(text.trim());
- var searchText = "&field1-0-0=longdesc&type1-0-0=substring&value1-0-0="
+ var searchText = "&field0-0-0=longdesc&type0-0-0=substring&value0-0-0="
+ text
- + "&field1-0-1=attach_data.thedata&type1-0-1=substring&value1-0-1="
+ + "&field0-0-1=attach_data.thedata&type0-0-1=substring&value0-0-1="
+ text
- + "&field1-0-2=status_whiteboard&type1-0-2=substring&value1-0-2="
+ + "&field0-0-2=status_whiteboard&type0-0-2=substring&value0-0-2="
+ text;
urlStr += searchText;
postMessage(new Message("OpenURLinTab", urlStr));