summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-08-30 12:14:24 +0200
committerjake%acutex.net <>2001-08-30 12:14:24 +0200
commit155a9860a30278f413c1848c9b6fad980e6a03cd (patch)
treea962085c5d74de8d13c9d48aa93ae07c333f1855 /processmail
parenta8aa4898842725ee4973fd9e047821ec237e8994 (diff)
downloadbugzilla-155a9860a30278f413c1848c9b6fad980e6a03cd.tar.gz
bugzilla-155a9860a30278f413c1848c9b6fad980e6a03cd.tar.xz
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
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail11
1 files changed, 7 insertions, 4 deletions
diff --git a/processmail b/processmail
index 1a506211b..b82c80aca 100755
--- a/processmail
+++ b/processmail
@@ -170,10 +170,11 @@ sub ProcessOneBug {
my $resid =
- SendSQL("SELECT bugs_activity.bug_id, fielddefs.name, " .
+ SendSQL("SELECT bugs_activity.bug_id, bugs.short_desc, fielddefs.name, " .
" removed, added " .
- "FROM bugs_activity, dependencies, fielddefs ".
+ "FROM bugs_activity, bugs, dependencies, fielddefs ".
"WHERE bugs_activity.bug_id = dependencies.dependson " .
+ " AND bugs.bug_id = bugs_activity.bug_id ".
" AND dependencies.blocked = $id " .
" AND fielddefs.fieldid = bugs_activity.fieldid" .
" AND (fielddefs.name = 'bug_status' " .
@@ -186,14 +187,16 @@ sub ProcessOneBug {
my $lastbug = "";
my $interestingchange = 0;
while (MoreSQLData()) {
- my ($bug, $what, $old, $new) = (FetchSQLData());
+ my ($bug, $summary, $what, $old, $new) = (FetchSQLData());
if ($bug ne $lastbug) {
if ($interestingchange) {
$deptext .= $thisdiff;
}
$lastbug = $bug;
$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 .= ('-' x 76) . "\n";
$interestingchange = 0;