summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-10-17 13:31:49 +0200
committerbugreport%peshkin.net <>2002-10-17 13:31:49 +0200
commitdc892b1118b931cb2b616a7c5158995f97960d22 (patch)
treeaaf3b348692d622fb638048dc0756679ffdaadb0 /processmail
parentd69b9a45e9b7031fc569ca1970abd012a84fede1 (diff)
downloadbugzilla-dc892b1118b931cb2b616a7c5158995f97960d22.tar.gz
bugzilla-dc892b1118b931cb2b616a7c5158995f97960d22.tar.xz
Bug 112373 you should be able to enter bug dependencies/blockers when you enter a bug.
patch by jhedlund r,2xr=joel
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail16
1 files changed, 16 insertions, 0 deletions
diff --git a/processmail b/processmail
index 3b421e922..fd1f50b62 100755
--- a/processmail
+++ b/processmail
@@ -131,6 +131,22 @@ sub ProcessOneBug {
}
$values{'estimated_time'} = FormatTimeUnit($values{'estimated_time'});
+ my @dependslist;
+ SendSQL("SELECT dependson FROM dependencies WHERE
+ blocked = $id ORDER BY dependson");
+ while (MoreSQLData()) {
+ push(@dependslist, FetchOneColumn());
+ }
+ $values{'dependson'} = join(",", @dependslist);
+
+ my @blockedlist;
+ SendSQL("SELECT blocked FROM dependencies WHERE
+ dependson = $id ORDER BY blocked");
+ while (MoreSQLData()) {
+ push(@blockedlist, FetchOneColumn());
+ }
+ $values{'blocked'} = join(",", @blockedlist);
+
my @diffs;