[rt-commit] [svn] r515 -
rt/branches/rt-3.1/html/REST/1.0/Forms/ticket
jesse at fsck.com
jesse at fsck.com
Tue Mar 9 17:07:59 EST 2004
Author: jesse
Date: Tue Mar 9 17:07:59 2004
New Revision: 515
Modified:
rt/branches/rt-3.1/html/REST/1.0/Forms/ticket/attachments
Log:
REST attachments API will now display attachments without filenames
Modified: rt/branches/rt-3.1/html/REST/1.0/Forms/ticket/attachments
==============================================================================
--- rt/branches/rt-3.1/html/REST/1.0/Forms/ticket/attachments (original)
+++ rt/branches/rt-3.1/html/REST/1.0/Forms/ticket/attachments Tue Mar 9 17:07:59 2004
@@ -86,11 +86,10 @@
while (my $t = $transactions->Next) {
my $attachments = $t->Attachments;
while (my $a = $attachments->Next) {
- next unless $a->Filename;
my $size = length($a->Content);
if ($size > 1024) { $size = int($size/102.4)/10 . "k" }
else { $size .= "b" }
- push @attachments, $a->Id.": ".$a->Filename." (".$size.")";
+ push @attachments, $a->Id.": ".$a->Filename." (".$a->ContentType . " / ".$size.")";
}
}
More information about the Rt-commit
mailing list