aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2009-11-20 02:58:06 +0100
committerMatěj Cepl <mcepl@redhat.com>2009-11-20 02:58:06 +0100
commit0e0acd394b17f44440a573baadc7272fe8ce0404 (patch)
tree746c06fd786990009a32a40c625ff66dc90491b7 /bugzillaBugTriage.js
parentd66af2e81aa6e5833c9d5fddc622faa4fb48da56 (diff)
downloadbugzilla-triage-0e0acd394b17f44440a573baadc7272fe8ce0404.tar.gz
One proposal for smarter closing of bugs.
Fix setting of the default assignee.
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js35
1 files changed, 21 insertions, 14 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js
index 1c1db65..9af7695 100644
--- a/bugzillaBugTriage.js
+++ b/bugzillaBugTriage.js
@@ -1217,20 +1217,26 @@ bzPage.prototype.generateToolBar = function(anchor,array) {
bzPage.prototype.generalPurposeCureForAllDisease = function
(addString,nextState,secondParameter) {
if (addString.length >0) {
- this.addTextToComment(addString);
- }
+ this.addTextToComment(addString);
+ }
- if (nextState === "CLOSED") {
- if (secondParameter === "UPSTREAM") {
- this.addClosingUpstream();
- } else if (secondParameter.length > 0) {
- this.selectOption("bug_status", nextState);
- this.selectOption("resolution",secondParameter);
- return 0;
- } else {
- throw("Missing resolution for CLOSED status.");
- }
- }
+ if (nextState === "CLOSED") {
+ if (secondParameter === "UPSTREAM") {
+ this.addClosingUpstream();
+ } else if (secondParameter === "SOMERELEASE") {
+ // TODO for RAWHIDE close as RAWHIDE,
+ // if active selection -> CURRENTRELEASE
+ // and put the release version to
+ // "Fixed in Version" textbox
+ // otherwise -> NEXTRELEASE
+ } else if (secondParameter.length > 0) {
+ this.selectOption("bug_status", nextState);
+ this.selectOption("resolution",secondParameter);
+ return 0;
+ } else {
+ throw("Missing resolution for CLOSED status.");
+ }
+ }
// Now closing bugs is done, what about the rest?
if (nextState === "NEEDINFO") {
@@ -1389,8 +1395,9 @@ function bzPage(doc) {
this.checkComments();
this.buildButtons(topRow,bottomRow);
+ // FIXME this doesn't work as it should.
$("#component",this.doc).change(function (){
- that.changeOwner(that.maintCCAddr);
+ that.changeOwner(that.defaultAssignee);
});
}