summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Flag.pm
diff options
context:
space:
mode:
authordkl%redhat.com <>2008-08-28 03:38:45 +0200
committerdkl%redhat.com <>2008-08-28 03:38:45 +0200
commitef56c491a65eed9dfddb2866c5faa59acb69b0ed (patch)
treec19810a3e76fae26301ce030f5e9412e564fcee7 /Bugzilla/Flag.pm
parent745f9e658a8e4d26bfd250b263132b25ab60e173 (diff)
downloadbugzilla-ef56c491a65eed9dfddb2866c5faa59acb69b0ed.tar.gz
bugzilla-ef56c491a65eed9dfddb2866c5faa59acb69b0ed.tar.xz
Bug 449791 – Allow flag notification emails to be threaded similar to normal bug change emails
Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit
Diffstat (limited to 'Bugzilla/Flag.pm')
-rw-r--r--Bugzilla/Flag.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 73266ce9f..8201a907d 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -1104,10 +1104,15 @@ sub notify {
}
foreach my $to (keys %recipients) {
- my $vars = { 'flag' => $flag,
- 'to' => $to,
- 'bug' => $bug,
- 'attachment' => $attachment};
+ # Add threadingmarker to allow flag notification emails to be the
+ # threaded similar to normal bug change emails.
+ my $thread_user_id = $recipients{$to} ? $recipients{$to}->id : 0;
+
+ my $vars = { 'flag' => $flag,
+ 'to' => $to,
+ 'bug' => $bug,
+ 'attachment' => $attachment,
+ 'threadingmarker' => build_thread_marker($bug->id, $thread_user_id) };
my $lang = $recipients{$to} ?
$recipients{$to}->settings->{'lang'}->{'value'} : $default_lang;