Closed Bug 388232 Opened 18 years ago Closed 18 years ago

Restricting a bug to a group sets reporter_accessible and cc_accessible to 0

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: LpSolit, Assigned: mkanat)

References

Details

(Keywords: regression)

Attachments

(1 file)

This is a regression due to bug 388045: When you restrict a bug to some group, both the reporter_accessible and cc_accessible attributes are automatically set to 0, as shown by the bug activity table: CC Accessible 1 0 Reporter Accessible 1 0 Group security The reason is because process_bug.cgi doesn't make sure that these fields are defined first. When the bug is not restricted, these checkboxes are not displayed, and so set_foo_accessible() assumes their value to be 0.
Flags: blocking3.1.1?
Of course process_bug doesn't check if the fields are defined. They're checkboxes. So if they're defined, they're 0. I think what really needs to happen is that the reporter_accessible and cclist_accessible changes need to just be moved before the group changes, which should be easy.
Okay, wait. This check already happens before bugs have groups. So I'll have to investigate. Oh, also: (In reply to comment #1) > So if they're defined, they're 0. s/defined/not defined/
Assignee: create-and-change → mkanat
Attached patch v1Splinter Review
Okay, this fixes it. It's also a much more sensible function that $bug->groups(), currently. Eventually we should also have a groups_chooseable() function, and just eliminate $bug->groups.
Attachment #272420 - Flags: review?(LpSolit)
Status: NEW → ASSIGNED
Flags: blocking3.1.1? → blocking3.1.1+
Comment on attachment 272420 [details] [diff] [review] v1 r=LpSolit
Attachment #272420 - Flags: review?(LpSolit) → review+
Flags: approval+
Checking in process_bug.cgi; /cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v <-- process_bug.cgi new revision: 1.379; previous revision: 1.378 done Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.193; previous revision: 1.192 done
Status: ASSIGNED → RESOLVED
Closed: 18 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: