aboutsummaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-04-14 03:31:26 +0000
committerkiko%async.com.br <>2004-04-14 03:31:26 +0000
commit6d413a7ccc12dcd446f15dbee9a051f52b85f270 (patch)
treeb8734aa29c91d7e67060d08f316fb6e3d904764d /attachment.cgi
parent79551ef344dc38a32a3f03579f97bc2cc64d6b41 (diff)
downloadbugs-6d413a7ccc12dcd446f15dbee9a051f52b85f270.tar
bugs-6d413a7ccc12dcd446f15dbee9a051f52b85f270.tar.gz
bugs-6d413a7ccc12dcd446f15dbee9a051f52b85f270.tar.bz2
bugs-6d413a7ccc12dcd446f15dbee9a051f52b85f270.tar.xz
bugs-6d413a7ccc12dcd446f15dbee9a051f52b85f270.zip
Additional fix for bug 87770: attachment.cgi should work with no
parameters. Use <button> tags to allow for localization of the labels. r=myk, a=myk. I padded the Edit button with &nbsp;s to ensure it has the same width as the View button; it may not be kosher but passes as visually agreeable, at least.
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi9
1 files changed, 0 insertions, 9 deletions
diff --git a/attachment.cgi b/attachment.cgi
index d851e537e..67e8559c4 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -76,15 +76,6 @@ my $cgi = Bugzilla->cgi;
# Determine whether to use the action specified by the user or the default.
my $action = $::FORM{'action'} || 'view';
-# Slight awkward extra checks for the case when we came here from the
-# attachment/choose.html.tmpl page
-if ($action eq 'View') {
- $action = 'view';
-}
-elsif ($action eq 'Edit') {
- $action = 'edit';
-}
-
if ($action eq "view")
{
validateID();