Bug 274906 - Bugzilla no longer displays an [edit] link inline for attachments. Instead, the edit page is linked to directly where a "view" link is available to get the raw data if required.

r=wurblzap, a=justdave
This commit is contained in:
jake%bugzilla.org 2005-04-26 16:38:35 +00:00
Родитель f0c247db7e
Коммит 9c34608454
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -832,8 +832,8 @@ sub GetAttachmentLink {
my ($title, $className) = @{$::attachlink{$attachid}};
# $title will be undefined if the attachment didn't exist in the database.
if (defined $title) {
my $linkval = "attachment.cgi?id=$attachid";
return qq{<a href="$linkval" class="$className" title="$title">$link_text</a> [<a href="$linkval&amp;action=edit">edit</a>]};
my $linkval = "attachment.cgi?id=$attachid&amp;action=edit";
return qq{<a href="$linkval" class="$className" title="$title">$link_text</a>};
}
else {
return qq{$link_text};