Fix extra increments/decrements in the issue table after reloading.

Review Request #9342 - Created Oct. 31, 2017 and submitted

Christian Hammond
Review Board
release-3.0.x
653efd7...
reviewboard

When reloading the issue summary table from the server after a watched
status update finished, resolving an issue would cause the counter on
the tab to decrement twice. If the table had reloaded a third time, the
count would be decremented a third time.

This was due to an event handler being registered every time the view
was reloaded, causing the issue status change handler to be called too
many times. Old event handlers are now unregistered when rendering the
view to ensure this doesn't happen.

Triggered re-renders of the Issue Summary Table and resolved issues to
reproduce the bug. After the fix, the counts were correct.

  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
David Trowbridge
  1. 
      
  2. In your description, "The Issue Summary table" should probably all be lower case.

  3. 
      
Christian Hammond
Christian Hammond
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (eca7c7e)
Loading...