aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorendico%mozilla.org <>1999-09-14 07:14:50 +0000
committerendico%mozilla.org <>1999-09-14 07:14:50 +0000
commit41a492a37c0033fa2ad1485a9b80590dfc9844c7 (patch)
treecda06a2698967f564ade12dc4e71cd9eaf128742 /showdependencytree.cgi
parentPatch by fred@dicad.de (Friedhelm Goesling) -- make Javascript work under IE. (diff)
downloadbugzilla-41a492a37c0033fa2ad1485a9b80590dfc9844c7.tar.gz
bugzilla-41a492a37c0033fa2ad1485a9b80590dfc9844c7.tar.bz2
bugzilla-41a492a37c0033fa2ad1485a9b80590dfc9844c7.zip
add milestone and bug owner to each bug, where appropriate. (repleaces chofmann.cgi)
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-xshowdependencytree.cgi20
1 files changed, 17 insertions, 3 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi
index 36694ba6e..b9002cffd 100755
--- a/showdependencytree.cgi
+++ b/showdependencytree.cgi
@@ -57,8 +57,16 @@ sub DumpKids {
if (@list) {
print "<ul>\n";
foreach my $kid (@list) {
- SendSQL("select bug_id, bug_status, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset");
- my ($bugid, $stat, $short_desc) = (FetchSQLData());
+ my ($bugid, $stat, $milestone) = ("", "", "");
+ my ($userid, $short_desc) = ("", "");
+ if (Param('usetargetmilestone')) {
+ SendSQL("select bug_id, bug_status, target_milestone, assigned_to, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset");
+ ($bugid, $stat, $milestone, $userid, $short_desc) = (FetchSQLData());
+ } else {
+ SendSQL("select bug_id, bug_status, userid, short_desc from bugs where bug_id = $kid and bugs.groupset & $::usergroupset = bugs.groupset");
+ ($bugid, $stat, $userid, $short_desc) = (FetchSQLData());
+
+ }
if (!defined $bugid) {
next;
}
@@ -69,7 +77,13 @@ sub DumpKids {
print "<strike>";
}
$short_desc = html_quote($short_desc);
- print qq{<a href="show_bug.cgi?id=$kid">$kid $short_desc</a>};
+ SendSQL("select login_name from profiles where userid = $userid");
+ my ($owner) = (FetchSQLData());
+ if ( (Param('usetargetmilestone')) && ($milestone) ) {
+ print qq{<a href="show_bug.cgi?id=$kid">$kid [$milestone, $owner] - $short_desc</a>};
+ } else {
+ print qq{<a href="show_bug.cgi?id=$kid">$kid [$owner] - $short_desc</a>};
+ }
if (!$opened) {
print "</strike>";
}