From 318651ceaba13b359b97e383ef25c5761aeddc7e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 3 May 2017 07:38:59 -0400 Subject: Bug 1355490 - Short URL link give "The token is not valid" error --- template/en/default/global/header.html.tmpl | 60 +++++++++++++++-------------- 1 file changed, 32 insertions(+), 28 deletions(-) (limited to 'template') diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 215afefd0..5cd0fef79 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -117,38 +117,42 @@ # value of title anyway. To get around that problem we explicitly # set header's default value here only if it is undefined. %] [% IF !header.defined %][% header = title %][% END %] -[%- js_BUGZILLA = { - param => { - cookiepath => Param('cookiepath'), - maxusermatches => Param('maxusermatches'), - }, - constant => { - COMMENT_COLS => constants.COMMENT_COLS, - }, - string => { - # Please keep these in alphabetical order. - - attach_desc_required => - 'You must enter a Description for this attachment.', - component_required => - "You must select a Component for this $terms.bug", - description_required => - "You must enter a Description for this $terms.bug", - short_desc_required => - "You must enter a Summary for this $terms.bug", - version_required => - "You must select a Version for this $terms.bug" - } - }; - IF generate_api_token; - js_BUGZILLA.api_token = get_api_token(); - END; -%] - + + [%- js_BUGZILLA = { + param => { + cookiepath => Param('cookiepath'), + maxusermatches => Param('maxusermatches'), + }, + constant => { + COMMENT_COLS => constants.COMMENT_COLS, + }, + string => { + # Please keep these in alphabetical order. + attach_desc_required => + 'You must enter a Description for this attachment.', + component_required => + "You must select a Component for this $terms.bug", + description_required => + "You must enter a Description for this $terms.bug", + short_desc_required => + "You must enter a Summary for this $terms.bug", + version_required => + "You must select a Version for this $terms.bug" + } + }; + %] [% Hook.process("start") %] + [% + IF generate_api_token; + js_BUGZILLA.api_token = get_api_token(); + END; + %] + + [% title %] [% IF Param('utf8') %] -- cgit v1.2.3-24-g4f1b