From 772d87178b088a45702a9605b00646f17884a0e4 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 19 Aug 2015 14:58:23 +0300 Subject: [PATCH] Fix script loading order to make default values work on creation form --- js/enter_bug.js | 1 + template/en/default/bug/create/create.html.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/enter_bug.js b/js/enter_bug.js index 58e4018da..ddb0fceef 100644 --- a/js/enter_bug.js +++ b/js/enter_bug.js @@ -2,6 +2,7 @@ * License: Dual-license GPL 3.0+ or MPL 1.1+ * Contributor(s): Vitaliy Filippov */ +// MUST be loaded AFTER bug-visibility.js var cc_rem = {}, cc_add = {}; var last_cc; diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 2544d0eeb..8630c9db5 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -31,8 +31,8 @@ quicksearch_tabindex = 30 style_urls = [ 'skins/standard/create_attachment.css', 'skins/standard/calendar.css', "skins/standard/comments.css" ] javascript_urls = [ - "js/attachment.js", "js/bug.js", "js/enter_bug.js", "js/field.js", "js/calendar.js", - "js/bug-visibility.js", "fieldvaluecontrol.cgi?user=${Bugzilla.user.id}" + "js/attachment.js", "js/bug.js", "js/field.js", "js/calendar.js", + "js/bug-visibility.js", "fieldvaluecontrol.cgi?user=${Bugzilla.user.id}", "js/enter_bug.js" ] %]