aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-05-18 10:22:47 +0200
committerMatěj Cepl <mcepl@redhat.com>2010-05-18 10:22:47 +0200
commit95ce80d39abc6dc16380b87ece5999d41c9a58cc (patch)
tree3aca94971d7a1e067dc181bedb5d887123189c24
parentd306c2460bedac3eec1167da537f5a92e61074ba (diff)
downloadbugzilla-triage-95ce80d39abc6dc16380b87ece5999d41c9a58cc.tar.gz
When we don't have a default assignee, don't pretend to have it.
-rw-r--r--bugzillaBugTriage.js12
1 files 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 ;
+ }
}
}