From 95ce80d39abc6dc16380b87ece5999d41c9a58cc Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 18 May 2010 10:22:47 +0200 Subject: When we don't have a default assignee, don't pretend to have it. --- bugzillaBugTriage.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 1555627..2efcd7d 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -792,10 +792,14 @@ BZPage.prototype.changeAssignee = function(newAssignee) { } if (this.getDefaultAssignee) { - let defAss = this.getDefaultAssignee(); - console.log("defAss = " + defAss); - if (newAssignee == "default" && defAss) { - newAssignee = defAss; + if (newAssignee == "default") { + let defAss = this.getDefaultAssignee(); + console.log("defAss = " + defAss); + if (defAss) { + newAssignee = defAss; + } else { + return ; + } } } -- cgit