From: bugreport%peshkin.net <> Date: Wed, 21 Sep 2005 11:30:30 +0000 (+0000) Subject: Bug 309221: Attachments table displays zero size for locally stored attachments X-Git-Tag: bugzilla-2.21.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4d0ddc58cc872a275053f7e1f8849acd864241a;p=thirdparty%2Fbugzilla.git Bug 309221: Attachments table displays zero size for locally stored attachments Patch by Joel Peshkin r=lpsolit, a=justdave --- diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 578f67b1fc..4a61154b78 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -367,7 +367,7 @@ sub _get_local_filename { my $self = shift; my $hash = ($self->id % 100) + 100; $hash =~ s/.*(\d\d)$/group.$1/; - return "$attachdir/$hash/attachment.$self->id"; + return "$attachdir/$hash/attachment." . $self->id; } =pod