]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1343845 - bug status summary does not work when logged out
authorEmma Humphries <emceeaich@users.noreply.github.com>
Thu, 9 Mar 2017 04:58:56 +0000 (20:58 -0800)
committerDylan William Hardison <dylan@hardison.net>
Fri, 17 Mar 2017 20:52:39 +0000 (16:52 -0400)
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.

extensions/BugModal/web/bug_modal.js

index 7a608cbe9552533b7144bfec55cdbf1c7f3428fb..27d8eb01baae683fc588efd41678918b9651ec0f 100644 (file)
@@ -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')