You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: When activating or deactivating a newly created label for an issue, it counts every selection #7858
I’ve noticed a bug related to issue labels. When a user creates a new issue and adds a new label within it, toggling the issue's active/inactive state increases the label count each time it's selected. This results in an incorrect issue count for the label.
Steps to Reproduce:
Create a new issue.
Add a new label and assign it to the issue.
Toggle the issue’s active/inactive state multiple times.
Notice that the label count increases with each toggle, even though the label is only applied to the issue once.
Update:
Creating a new label isn’t necessary to reproduce this bug. Existing label also exhibit the same behavior.
simply toggling the label's active/inactive state multiple times causes the label count to keep increasing!
This came from the create-issue dialog: removing a label there didn't actually remove it from the draft, so toggling it on and off left several copies. When the issue was saved, each copy became its own label reference and was counted. This was fixed in #8373 (7acef2e), which now removes labels by their tag id in the create-issue, sub-issue draft and template editors, and editing labels on an existing issue already skipped duplicates. This looks resolved, so the issue could be closed.
@orpheus-ui — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.
Activity
huly-github-staging commentedon Jan 31, 2025
Connected to Huly®: UBERF-9335
orpheus-ui commentedon Jan 31, 2025
Update:
Creating a new label isn’t necessary to reproduce this bug. Existing label also exhibit the same behavior.
simply toggling the label's active/inactive state multiple times causes the label count to keep increasing!
MichaelUray commentedon Oct 18, 2026
This came from the create-issue dialog: removing a label there didn't actually remove it from the draft, so toggling it on and off left several copies. When the issue was saved, each copy became its own label reference and was counted. This was fixed in #8373 (7acef2e), which now removes labels by their tag id in the create-issue, sub-issue draft and template editors, and editing labels on an existing issue already skipped duplicates. This looks resolved, so the issue could be closed.
MichaelUray commentedon Oct 20, 2026
@orpheus-ui — based on the check described above, this looks resolved in the current code. Could you please close this issue if you agree? If you think it is not fixed yet, please describe what still goes wrong (steps, expected vs. actual behaviour), so it can be looked at again.