aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-28 16:57:05 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit7fc98165e35fffa5011ce712bf6ab5920b62ee63 (patch)
tree4fdadbd7c6c885b45ee6b0411939059ad111cf42 /data
parent70800020bb6731136f1df1fd42f7de1607cd2767 (diff)
downloadbugzilla-triage-7fc98165e35fffa5011ce712bf6ab5920b62ee63.tar.gz
Make closing bug as UPSTREAM working again.
Actually, wholeURL must be initialized and wholeURL is string, not an object which would have host property). Fixes #102
Diffstat (limited to 'data')
-rw-r--r--data/rhlib/rhbzpage.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js
index b263d98..654e1dc 100644
--- a/data/rhlib/rhbzpage.js
+++ b/data/rhlib/rhbzpage.js
@@ -380,12 +380,16 @@ function addClosingUpstream() {
"external_id");
if (inputBox.value.match(/^http.*/)) {
- externalBugID = getBugNoFromURL(inputBox.value);
+ wholeURL = inputBox.value;
+ // TODO this is probably midlly ineffective ... we do parseURL here,
+ // and getBugNoFromURL does it as well.
+ externalBugID = getBugNoFromURL(wholeURL);
if (externalBugID) {
inputBox.value = externalBugID;
}
// get bugzillaName and set the label
- var bugzillaName = getBugzillaName(wholeURL.host, constantData.bugzillaLabelNames);
+ var bugzillaName = getBugzillaName(parseURL(wholeURL).host,
+ constantData.bugzillaLabelNames);
selectOptionByLabel("external_id", bugzillaName);
}
else if (!isNaN(inputBox.value)) {