aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2012-06-26 17:20:26 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-26 17:20:26 +0200
commit5b3ea4d476084d47c99e3d2e9d409fea84c16831 (patch)
tree88588a72c98dfc3cfdc3e4b37b196c3f48d31da6 /attachment.cgi
parentBug 762785: Attachments are attached to the wrong comment when created by ema... (diff)
downloadbugzilla-5b3ea4d476084d47c99e3d2e9d409fea84c16831.tar.gz
bugzilla-5b3ea4d476084d47c99e3d2e9d409fea84c16831.tar.bz2
bugzilla-5b3ea4d476084d47c99e3d2e9d409fea84c16831.zip
Bug 138546: Add a checkbox to add himself to the CC list when creating or editing an attachment
r/a=LpSolit
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);