diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-05-20 01:39:45 +0200 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-05-20 01:39:59 +0200 |
commit | 01ea5eeb0523b05f4280e5b637dde7ab1646a48c (patch) | |
tree | 299c249b951b27386de79220657351b14b3d92b0 /extensions/BugModal/template | |
parent | 3eb0bbad9975f5352a659fc32e998bffce30bd88 (diff) | |
download | bugzilla-01ea5eeb0523b05f4280e5b637dde7ab1646a48c.tar.gz bugzilla-01ea5eeb0523b05f4280e5b637dde7ab1646a48c.tar.xz |
Bug 1272548 - bug link in header broken if format param specified
Diffstat (limited to 'extensions/BugModal/template')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 25f785a9d..06b6c801d 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -166,9 +166,12 @@ view_only = 1 %] <div id="field-value-bug_id"> - <a id="this-bug" href="show_bug.cgi?id=[% bug.id FILTER none %] - [%~ '&format=' _ cgi.param("format") FILTER uri IF cgi.param("format") %]" - > + [% this_bug_href = "show_bug.cgi?id=$bug.id" %] + [% IF cgi.param("format") %] + [% format_uri = cgi.param("format") FILTER uri %] + [% this_bug_href = this_bug_href _ "&format=" _ format_uri %] + [% END %] + <a id="this-bug" href="[% this_bug_href FILTER html %]"> [%~ terms.Bug _ " " _ bug.id FILTER none ~%] </a> [% IF bug.alias %] |