Closed Bug 556403 Opened 15 years ago Closed 15 years ago

Move adding/removing of CCs into Bugzilla::Bug::set_all

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

This should be relatively straightforward, since we already have a whole setup in process_bug.cgi for add_cc and remove_cc.
Attached patch v1Splinter Review
process_bug was allowing masscc and newcc to be set multiple times, which didn't make any sense, since they're never set multiple times. So I changed that. Otherwise, this is a pretty straightforward port. I also did a bit of refactoring inside of set_all to remove the duplicate code pattern that I kept writing for add/remove stuff.
Assignee: create-and-change → mkanat
Status: NEW → ASSIGNED
Attachment #436343 - Flags: review?(dkl)
Blocks: 556407
Comment on attachment 436343 [details] [diff] [review] v1 Looks cleaner and all paths work as expected. r=dkl
Attachment #436343 - Flags: review?(dkl) → review+
Flags: approval?
Flags: approval? → approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified process_bug.cgi modified Bugzilla/Bug.pm Committed revision 7192.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Blocks: 592480
(In reply to comment #1) > process_bug was allowing masscc and newcc to be set multiple times, which > didn't make any sense, since they're never set multiple times. Sure you can, when CC'ing several users at once, Bugzilla::User::match_field() returns an arrayref.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: