Closed
Bug 1005780
Opened 10 years ago
Closed 10 years ago
When cloning a bug, also add the assignee and qa contact to the CC: list of the new bug
Categories
(Bugzilla :: Creating/Changing Bugs, enhancement, P3)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: mail, Assigned: mail)
References
Details
Attachments
(1 file, 1 obsolete file)
826 bytes,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
Currently when cloning a bug, we only copy the reporter to the CC: field of the new bug. We should also copy the assignee and qa_contact (if any) (NB: $bug->qa_contact returns undef if the Bugzilla installation doesn't support qa_contacts)
Attachment #8417187 -
Flags: review?(glob)
Assignee | ||
Updated•10 years ago
|
Summary: When cloning a bug, also add the assignee and qa contact → When cloning a bug, also add the assignee and qa contact to the CC: list of the new bug
Comment on attachment 8417187 [details] [diff] [review] allcc-v1.patch Review of attachment 8417187 [details] [diff] [review]: ----------------------------------------------------------------- ::: enter_bug.cgi @@ +216,5 @@ > } else { > $vars->{'cc'} = formvalue('cc'); > } > + > + for my $role (qw(reporter assigned_to qa_contact)) { use 'foreach' not 'for' @@ +219,5 @@ > + > + for my $role (qw(reporter assigned_to qa_contact)) { > + if (defined($cloned_bug->$role) > + && $cloned_bug->$role->id != $user->id > + && none { $_ eq $cloned_bug->$role->login } @{$cloned_bug->cc}) { drop that trailing { to the next line to clearly separate the condition from the code block @@ +220,5 @@ > + for my $role (qw(reporter assigned_to qa_contact)) { > + if (defined($cloned_bug->$role) > + && $cloned_bug->$role->id != $user->id > + && none { $_ eq $cloned_bug->$role->login } @{$cloned_bug->cc}) { > + $vars->{'cc'} = join (", ", $cloned_bug->$role->login, $vars->{'cc'}); remove trailing whitespace
Attachment #8417187 -
Flags: review?(glob) → review-
Assignee | ||
Comment 2•10 years ago
|
||
> use 'foreach' not 'for'
Guess who's been learning Python lately? :)
Attachment #8417187 -
Attachment is obsolete: true
Attachment #8417189 -
Flags: review?(glob)
Comment on attachment 8417189 [details] [diff] [review] allcc-v2.patch Review of attachment 8417189 [details] [diff] [review]: ----------------------------------------------------------------- r=glob
Attachment #8417189 -
Flags: review?(glob) → review+
Assignee | ||
Comment 4•10 years ago
|
||
To ssh://git.mozilla.org/bugzilla/bugzilla.git b0df54c..85e0d6c master -> master
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•