Bug 70710: More expandable tags within emails - Patch by Alan Siu-Lung Tam <Tam@SiuLung.com> r=vladd a=myk

git-svn-id: svn://10.0.0.236/trunk@193204 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
lpsolit%gmail.com
2006-03-29 18:49:12 +00:00
parent b258ce85ca
commit 5428d9447c
2 changed files with 13 additions and 0 deletions

View File

@@ -246,6 +246,7 @@ sub ProcessOneBug {
my $diffheader = "";
my @diffparts;
my $lastwho = "";
my @changedfields;
foreach my $ref (@$diffs) {
my ($who, $what, $when, $old, $new, $attachid, $fieldname) = (@$ref);
my $diffpart = {};
@@ -271,7 +272,9 @@ sub ProcessOneBug {
$diffpart->{'fieldname'} = $fieldname;
$diffpart->{'text'} = $difftext;
push(@diffparts, $diffpart);
push(@changedfields, $what);
}
$values{'changed_fields'} = join(' ', @changedfields);
my $deptext = "";
@@ -625,6 +628,11 @@ sub sendMail {
$substs{"component"} = $values{'component'};
$substs{"keywords"} = $values{'keywords'};
$substs{"severity"} = $values{'bug_severity'};
$substs{"status"} = $values{'bug_status'};
$substs{"priority"} = $values{'priority'};
$substs{"assignedto"} = $values{'assigned_to'};
$substs{"targetmilestone"} = $values{'target_milestone'};
$substs{"changedfields"} = $values{'changed_fields'};
$substs{"summary"} = $values{'short_desc'};
my (@headerrel, @watchingrel);
while (my ($rel, $bits) = each %{$relRef}) {