summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 92f48d05d..16c964e47 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -574,6 +574,8 @@ sub insert {
$owner = $bug->assigned_to->login;
$bug->set_assigned_to($user);
}
+
+ $bug->add_cc($user) if $cgi->param('addselfcc');
$bug->update($timestamp);
$dbh->bz_commit_transaction;
@@ -686,6 +688,8 @@ sub update {
extra_data => $attachment->id });
}
+ $bug->add_cc($user) if $cgi->param('addselfcc');
+
if ($can_edit) {
my ($flags, $new_flags) =
Bugzilla::Flag->extract_flags_from_cgi($bug, $attachment, $vars);