diff options
-rwxr-xr-x | show_bug.cgi | 9 |
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: $!"; - |