Closed Bug 389835 Opened 17 years ago Closed 17 years ago

Various issues when changing several bugs at once

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

Attachments

(1 file)

Bug::check_status_transition() should probably use Status::can_change_to(), or I simply have to fix check_status_transition() to allow FOO -> FOO transitions.
Attached patch patch, v1Splinter Review
Changing several bugs at once is pretty broken on tip. This patch should restore the feature completely.
Attachment #274204 - Flags: review?(mkanat)
Not only mass-change is broken when at least one bug keeps the same status, as badly explained in comment 0, but closing a bug also fails to set the resolution correctly due to a wrong name attribute for the <select> field (all <select> fields had the same incorrect name).

This patch also fixes the UI for mass-change to avoid confusion. I was myself pretty confused when the buglist includes closed bugs and it took me some time to track the problem (which was only a problem in the UI, the back-end was mostly fine).
Flags: blocking3.1.1+
Summary: Cannot change the resolution of several bugs at once if at least one bug keeps the same status → Various issues when changing several bugs at once
Target Milestone: --- → Bugzilla 3.2
Comment on attachment 274204 [details] [diff] [review]
patch, v1

Sure, this looks fine. r=mkanat by inspection.
Attachment #274204 - Flags: review?(mkanat) → review+
Flags: approval+
Checking in buglist.cgi;
/cvsroot/mozilla/webtools/bugzilla/buglist.cgi,v  <--  buglist.cgi
new revision: 1.360; previous revision: 1.359
done
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.381; previous revision: 1.380
done
Checking in Bugzilla/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v  <--  Bug.pm
new revision: 1.195; previous revision: 1.194
done
Checking in Bugzilla/Status.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Status.pm,v  <--  Status.pm
new revision: 1.4; previous revision: 1.3
done
Checking in template/en/default/global/user-error.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v  <--  user-error.html.tmpl
new revision: 1.223; previous revision: 1.222
done
Checking in template/en/default/list/edit-multiple.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v  <--  edit-multiple.html.tmpl
new revision: 1.44; previous revision: 1.43
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: