Demoting an achievement through the ticket manager can create multiple duplicate log comments
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
- Open multiple tickets for the same achievement.
- Close any ticket by demoting the achievement to Unofficial.
- Take a look at the achievement log.
Expected behavior There should only be one log comment added.
Small correction after confirming, it only logs a single demoted message when a ticket is closed with the Demote option regardless of how many tickets were open for the achievement. Each ticket closed with the Demote option will however log the achievement demoted message even after the achievement has already been demoted.