From: dave%intrec.com <> Date: Fri, 2 Feb 2001 11:44:47 +0000 (+0000) Subject: Fix for bug 22041: Bug page title now includes bug summary. Patch by st.n@gmx.net... X-Git-Tag: bugzilla-2.12~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e06172f719dc9b252a8fbee5cd5dae93f2ae160;p=thirdparty%2Fbugzilla.git Fix for bug 22041: Bug page title now includes bug summary. Patch by st.n@gmx.net (Stephan Niemz (faniz)) --- diff --git a/show_bug.cgi b/show_bug.cgi index 149182ae81..12a6755c72 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 "