From: Kohei Yoshino Date: Mon, 29 Oct 2018 18:28:24 +0000 (-0400) Subject: Bug 1479535 - BUGZILLA.bug_url is wrong on bug page after POSTed, Copy Summary doesn... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75bfca1c147e99b9ab8da67f96247f71687563d5;p=thirdparty%2Fbugzilla.git Bug 1479535 - BUGZILLA.bug_url is wrong on bug page after POSTed, Copy Summary doesn’t work as expected --- diff --git a/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl index 20561c760..87dea7975 100644 --- a/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/header.html.tmpl @@ -92,7 +92,7 @@ BUGZILLA.bug_id = [% bug.id FILTER none %]; BUGZILLA.bug_title = '[% unfiltered_title FILTER js %]'; BUGZILLA.bug_summary = '[% bug.short_desc FILTER js %]'; - BUGZILLA.bug_url = '[% Bugzilla.cgi.self_url FILTER js %]'; + BUGZILLA.bug_url = '[% Bugzilla.localconfig.canonical_urlbase _ "show_bug.cgi?id=" _ bug.id FILTER js %]'; BUGZILLA.user = { id: [% user.id FILTER none %], login: '[% user.login FILTER js %]', diff --git a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl index 51c388d42..52633172b 100644 --- a/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl +++ b/extensions/OpenGraph/template/en/default/hook/global/header-start.html.tmpl @@ -9,8 +9,8 @@ [% USE Bugzilla %] - [% IF bug %] + [% ELSIF error_message %]