summaryrefslogtreecommitdiffstats
path: root/show_bug.cgi
diff options
context:
space:
mode:
authordave%intrec.com <>2001-02-02 12:44:47 +0100
committerdave%intrec.com <>2001-02-02 12:44:47 +0100
commit7e06172f719dc9b252a8fbee5cd5dae93f2ae160 (patch)
tree710746f7d53625a531819ef54dd01d285d72f5e8 /show_bug.cgi
parent81843d6e04f091153d53fd188f53d535850b3ac6 (diff)
downloadbugzilla-7e06172f719dc9b252a8fbee5cd5dae93f2ae160.tar.gz
bugzilla-7e06172f719dc9b252a8fbee5cd5dae93f2ae160.tar.xz
Fix for bug 22041: Bug page title now includes bug summary. Patch by st.n@gmx.net (Stephan Niemz (faniz))
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-xshow_bug.cgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 149182ae8..12a6755c7 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -47,11 +47,16 @@ if (!defined $::FORM{'id'} || $::FORM{'id'} !~ /^\s*\d+\s*$/) {
GetVersionTable();
-PutHeader("Bugzilla bug $::FORM{'id'}", "Bugzilla Bug", $::FORM{'id'});
+SendSQL("select short_desc from bugs where bug_id = $::FORM{'id'}");
+my $summary = FetchOneColumn();
+if( $summary ) {
+ PutHeader("Bug $::FORM{'id'} - $summary", "Bugzilla Bug $::FORM{'id'}", $summary );
+}else {
+ PutHeader("Bugzilla bug $::FORM{'id'}", "Bugzilla Bug", $::FORM{'id'});
+}
navigation_header();
print "<HR>\n";
$! = 0;
do "bug_form.pl" || die "Error doing bug_form.pl: $!";
-