Skip to content

Demoting an achievement through the ticket manager can create multiple duplicate log comments #1769

Open
@wescopeland

Description

@wescopeland

Describe the bug
If there are multiple tickets opened for a single achievement, demoting the achievement to Unofficial via the ticket manager writes a log comment that says "[Username] demoted this achievement to Unofficial" for every ticket that was open at the time of demotion. For example, if an achievement has 10 tickets opened and a Developer closes 1 ticket by demoting the achievement to Unofficial, 10 log comments will be attached to the achievement.

To Reproduce

  1. Open multiple tickets for the same achievement.
  2. Close any ticket by demoting the achievement to Unofficial.
  3. Take a look at the achievement log.

Expected behavior
There should only be one log comment added.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions