Commit 155a9860 authored by jake%acutex.net's avatar jake%acutex.net

Fix for bug 28736 - Bugmail will now show the summary for the bug that changed…

Fix for bug 28736 - Bugmail will now show the summary for the bug that changed in the "This bug depends on bug X, which changed state" messages. Patch by Matthew Tuck <matty@chariot.net.au> r= jake@acutex.net
parent a8aa4898
...@@ -170,10 +170,11 @@ sub ProcessOneBug { ...@@ -170,10 +170,11 @@ sub ProcessOneBug {
my $resid = my $resid =
SendSQL("SELECT bugs_activity.bug_id, fielddefs.name, " . SendSQL("SELECT bugs_activity.bug_id, bugs.short_desc, fielddefs.name, " .
" removed, added " . " removed, added " .
"FROM bugs_activity, dependencies, fielddefs ". "FROM bugs_activity, bugs, dependencies, fielddefs ".
"WHERE bugs_activity.bug_id = dependencies.dependson " . "WHERE bugs_activity.bug_id = dependencies.dependson " .
" AND bugs.bug_id = bugs_activity.bug_id ".
" AND dependencies.blocked = $id " . " AND dependencies.blocked = $id " .
" AND fielddefs.fieldid = bugs_activity.fieldid" . " AND fielddefs.fieldid = bugs_activity.fieldid" .
" AND (fielddefs.name = 'bug_status' " . " AND (fielddefs.name = 'bug_status' " .
...@@ -186,14 +187,16 @@ sub ProcessOneBug { ...@@ -186,14 +187,16 @@ sub ProcessOneBug {
my $lastbug = ""; my $lastbug = "";
my $interestingchange = 0; my $interestingchange = 0;
while (MoreSQLData()) { while (MoreSQLData()) {
my ($bug, $what, $old, $new) = (FetchSQLData()); my ($bug, $summary, $what, $old, $new) = (FetchSQLData());
if ($bug ne $lastbug) { if ($bug ne $lastbug) {
if ($interestingchange) { if ($interestingchange) {
$deptext .= $thisdiff; $deptext .= $thisdiff;
} }
$lastbug = $bug; $lastbug = $bug;
$thisdiff = $thisdiff =
"\nThis bug depends on bug $bug, which changed state:\n\n"; "\nThis bug depends on bug $bug, which changed state.\n";
$thisdiff .=
"Bug $bug Summary: $summary\n\n";
$thisdiff .= FormatTriple("What ", "Old Value", "New Value"); $thisdiff .= FormatTriple("What ", "Old Value", "New Value");
$thisdiff .= ('-' x 76) . "\n"; $thisdiff .= ('-' x 76) . "\n";
$interestingchange = 0; $interestingchange = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment