]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
patch from Jake <jsteenhagen@novagate.com> to fix bug 59515; adds a title attribute...
authordmose%mozilla.org <>
Thu, 7 Dec 2000 11:04:31 +0000 (11:04 +0000)
committerdmose%mozilla.org <>
Thu, 7 Dec 2000 11:04:31 +0000 (11:04 +0000)
bug_form.pl
globals.pl

index e4fa39c6ef6df3a3737f53430e08acb90a8ff631..3fd71c99e5c6e936dba63f2add11432d1727a7ed 100644 (file)
@@ -321,20 +321,21 @@ sub EmitDependList {
     my ($desc, $myfield, $targetfield) = (@_);
     print "<th align=right>$desc:</th><td>";
     my @list;
-    SendSQL("select dependencies.$targetfield, bugs.bug_status
+    SendSQL("select dependencies.$targetfield, bugs.bug_status, short_desc
  from dependencies, bugs
  where dependencies.$myfield = $id
    and bugs.bug_id = dependencies.$targetfield
  order by dependencies.$targetfield");
     while (MoreSQLData()) {
-        my ($i, $stat) = (FetchSQLData());
+        my ($i, $stat, $dep_desc) = (FetchSQLData());
         push(@list, $i);
         my $opened = ($stat eq "NEW" || $stat eq "ASSIGNED" ||
                       $stat eq "REOPENED");
         if (!$opened) {
             print "<strike>";
         }
-        print qq{<a href="show_bug.cgi?id=$i">$i</a>};
+        $dep_desc = value_quote($dep_desc);
+        print qq{<a href="show_bug.cgi?id=$i" title="$stat - $dep_desc">$i</a>};
         if (!$opened) {
             print "</strike>";
         }
index f8bb4e2173a68cd9670a5777989e1599a1326eb3..bd1cf3ede9796a8890f19b56ad04650dd8c99efa 100644 (file)
@@ -676,15 +676,23 @@ sub quoteUrls {
     while ($text =~ s/\bbug(\s|%\#)*(\d+)/"##$count##"/ei) {
         my $item = $&;
         my $num = $2;
+        SendSQL("select bugs.bug_status, short_desc
+        from bugs where bugs.bug_id = $num");
+        my ($stat, $dep_desc) = (FetchSQLData());
         $item = value_quote($item); # Not really necessary, since we know
                                     # there's no special chars in it.
-        $item = qq{<A HREF="show_bug.cgi?id=$num">$item</A>};
+        $dep_desc = value_quote($dep_desc);
+        $item = qq{<A HREF="show_bug.cgi?id=$num" title="$stat - $dep_desc">$item</A>};
         $things[$count++] = $item;
     }
     while ($text =~ s/\*\*\* This bug has been marked as a duplicate of (\d+) \*\*\*/"##$count##"/ei) {
         my $item = $&;
         my $num = $1;
-        $item =~ s@\d+@<A HREF="show_bug.cgi?id=$num">$num</A>@;
+        SendSQL("select bugs.bug_status, short_desc
+        from bugs where bugs.bug_id = $num");
+        my ($stat, $dep_desc) = (FetchSQLData());
+        $dep_desc = value_quote($dep_desc);
+        $item =~ s@\d+@<A HREF="show_bug.cgi?id=$num" title="$stat - $dep_desc">$num</A>@;
         $things[$count++] = $item;
     }
     while ($text =~ s/Created an attachment \(id=(\d+)\)/"##$count##"/e) {