From 8347ad6b46164d1be2cf4b7e4a3c97438f827a2c Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 2 Jul 2010 00:39:07 +0200 Subject: Fix URL of the default JSON and make the script working even for non-me :) --- lib/main.js | 3 ++- lib/rhbzpage.js | 4 +++- 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 = ""; -- cgit