summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal
diff options
context:
space:
mode:
authorEmma Humphries <emceeaich@users.noreply.github.com>2017-03-09 05:58:56 +0100
committerDylan William Hardison <dylan@hardison.net>2017-03-17 21:52:39 +0100
commit30a4049a81926036c7d8bc59c71c8493f57545b6 (patch)
treedbd1ebb254dee77f626f203656f7f9a86fca0e46 /extensions/BugModal
parentdfb694156c4b1c7c1dd4cc09ede1f9afd82f2408 (diff)
downloadbugzilla-30a4049a81926036c7d8bc59c71c8493f57545b6.tar.gz
bugzilla-30a4049a81926036c7d8bc59c71c8493f57545b6.tar.xz
Bug 1343845 - bug status summary does not work when logged out
Move the block of code which updates the Readable Bug Status field above the point where we return from the anonymous function in the case of no login session.
Diffstat (limited to 'extensions/BugModal')
-rw-r--r--extensions/BugModal/web/bug_modal.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index 7a608cbe9..27d8eb01b 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -449,6 +449,11 @@ $(function() {
$.scrollTo($(this).attr('href').substr(1));
});
+ // Update readable bug status
+ var rbs = $("#readable-bug-status");
+ var rbs_text = bugzillaReadableStatus.readable(rbs.data('readable-bug-status'));
+ rbs.text(rbs_text);
+
if (BUGZILLA.user.id === 0) return;
//
@@ -775,9 +780,6 @@ $(function() {
var other = $(that.attr('id') == 'dup_id' ? '#bottom-dup_id' : '#dup_id');
other.val(that.val());
});
- var rbs = $("#readable-bug-status");
- var rbs_text = bugzillaReadableStatus.readable(rbs.data('readable-bug-status'));
- rbs.text(rbs_text);
// add see-also button
$('.bug-urls-btn')