]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for 21583: Buzilla attachments should say what kind of file they are
authorcyeh%bluemartini.com <>
Tue, 29 Aug 2000 01:29:22 +0000 (01:29 +0000)
committercyeh%bluemartini.com <>
Tue, 29 Aug 2000 01:29:22 +0000 (01:29 +0000)
bug_form.pl

index 3216ba42fd962e0783a48a9a0a92d7c366de4947..c59a00d10c79bc8b96f1e37c5deefe61014f6240 100644 (file)
@@ -304,15 +304,15 @@ if (@::legal_keywords) {
 }
 
 print "<tr><td align=right><B>Attachments:</b></td>\n";
-SendSQL("select attach_id, creation_ts, description from attachments where bug_id = $id");
+SendSQL("select attach_id, creation_ts, mimetype, description from attachments where bug_id = $id");
 while (MoreSQLData()) {
-    my ($attachid, $date, $desc) = (FetchSQLData());
+    my ($attachid, $date, $mimetype, $desc) = (FetchSQLData());
     if ($date =~ /^(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/) {
         $date = "$3/$4/$2 $5:$6";
     }
     my $link = "showattachment.cgi?attach_id=$attachid";
     $desc = value_quote($desc);
-    print qq{<td><a href="$link">$date</a></td><td colspan=6>$desc</td></tr><tr><td></td>};
+    print qq{<td><a href="$link">$date</a></td><td colspan=6>$desc&nbsp&nbsp&nbsp($mimetype)</td></tr><tr><td></td>};
 }
 print "<td colspan=7><a href=\"createattachment.cgi?id=$id\">Create a new attachment</a> (proposed patch, testcase, etc.)</td></tr></table>\n";