Fix a couple bugs in the unified banner.

Review Request #12899 — Created March 21, 2023 and submitted

david
Review Board
release-6.x
reviewboard

This change fixes up two issues we've found while testing the unified
banner:

  1. Selecting a single review reply and then clicking "Publish" would end
    up publishing all replies. This was due to a conditional that needed
    to be done in the opposite order.
  2. A last-minute change for the handler that scrolls to the selected
    review reply left it with some undefined variable errors (since we
    were no longer getting the model from the arguments). This has been
    fixed to use this.model.

Verified that both bugs were fixed.

Summary
Fix a couple bugs in the unified banner.
Description From Last Updated

Let's avoid the repeated this.model lookups and pull those out into a local variable.

chipx86chipx86
maubin
  1. Ship It!
  2. 
      
chipx86
  1. 
      
  2. Let's avoid the repeated this.model lookups and pull those out into a local variable.

  3. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-6.x (6f9fdc0)
Loading...