From: cyeh%bluemartini.com <>
Date: Tue, 29 Aug 2000 01:29:22 +0000 (+0000)
Subject: fix for 21583: Buzilla attachments should say what kind of file they are
X-Git-Tag: bugzilla-2.12~199
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca721c979535302b4a84add860ec41968639e5e0;p=thirdparty%2Fbugzilla.git
fix for 21583: Buzilla attachments should say what kind of file they are
---
diff --git a/bug_form.pl b/bug_form.pl
index 3216ba42fd..c59a00d10c 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -304,15 +304,15 @@ if (@::legal_keywords) {
}
print "
Attachments: | \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{$date | $desc |
| };
+ print qq{$date | $desc   ($mimetype) |
| };
}
print "Create a new attachment (proposed patch, testcase, etc.) |
\n";