summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-03-24 02:58:36 +0100
committergerv%gerv.net <>2002-03-24 02:58:36 +0100
commitfc6aa3c91fdcb1d9f11d05d9f13d1da8fce15b45 (patch)
tree5963cb8904490359bd8cfe5b7ca641edc54c2ff9 /show_bug.cgi
parent90713bc2165496a5299f9fda1549bb9e91a6fecb (diff)
downloadbugzilla-fc6aa3c91fdcb1d9f11d05d9f13d1da8fce15b45.tar.gz
bugzilla-fc6aa3c91fdcb1d9f11d05d9f13d1da8fce15b45.tar.xz
Bug 110012 - show_bug templatisation. r=bbaetz, afranke.
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi29
1 files changed, 3 insertions, 26 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 28eb66763..f832a2930 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -26,6 +26,7 @@ use strict;
use lib qw(.);
require "CGI.pl";
+require "bug_form.pl";
ConnectToDatabase();
@@ -49,32 +50,8 @@ if (defined ($::FORM{'id'})) {
# End Data/Security Validation
######################################################################
-print "Content-type: text/html\n";
-print "\n";
-
-if (!defined $::FORM{'id'}) {
- PutHeader("Search by bug number");
- print "<FORM METHOD=GET ACTION=\"show_bug.cgi\">\n";
- print "You may find a single bug by entering its bug id here: \n";
- print "<INPUT NAME=id>\n";
- print "<INPUT TYPE=\"submit\" VALUE=\"Show Me This Bug\">\n";
- print "</FORM>\n";
- PutFooter();
- exit;
-}
-
GetVersionTable();
-# Get the bug's summary (short description) and display it as
-# the page title.
-SendSQL("SELECT short_desc FROM bugs WHERE bug_id = $::FORM{'id'}");
-my ($summary) = FetchSQLData();
-$summary = html_quote($summary);
-PutHeader("Bug $::FORM{'id'} - $summary", "Bugzilla Bug $::FORM{'id'}", $summary, "", navigation_links() );
-
-navigation_header();
-
-print "<HR>\n";
+print "Content-type: text/html\n\n";
-$! = 0;
-do "bug_form.pl" || die "Error doing bug_form.pl: $!";
+show_bug();