aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-07-02 00:39:07 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-07-02 00:39:07 +0200
commit8347ad6b46164d1be2cf4b7e4a3c97438f827a2c (patch)
treed17d1e24c575f167d08bab7b11ac6b20726b2c7b
parent634303bee7cc51060b9b69bf27a9809f3b7c8d80 (diff)
downloadbugzilla-triage-8347ad6b46164d1be2cf4b7e4a3c97438f827a2c.tar.gz
Fix URL of the default JSON and make the script working even for non-me :)0.10
-rw-r--r--lib/main.js3
-rw-r--r--lib/rhbzpage.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/main.js b/lib/main.js
index 92fb8b7..9e7a413 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -21,7 +21,8 @@ var Request = require("request").Request;
var preferences = require("preferences-service");
var BSTPrefNS = require("bzpage").BSTPrefNS;
// Use my JSON for now before it is fixed for general public
-var JSONURLDefault = "https://fedorahosted.org/released/bugzilla-triage-scripts/";
+var JSONURLDefault = "https://fedorahosted.org/released"+
+ "/bugzilla-triage-scripts/Config_data.json";
var TriagedDistro = 13;
var NumberOfFrames = 7;
diff --git a/lib/rhbzpage.js b/lib/rhbzpage.js
index 7e930a3..da2ce7c 100644
--- a/lib/rhbzpage.js
+++ b/lib/rhbzpage.js
@@ -78,7 +78,9 @@ var RHBugzillaPage = function RHBugzillaPage(win, config) {
this.XorgLogAttListIndex = 0;
this.attachments = this.getAttachments();
this.markBadAttachments();
- this.setDefaultAssignee();
+ if (this.constantData.defaultAssignee) {
+ this.setDefaultAssignee();
+ }
// Dig out backtrace
this.btSnippet = "";