Role counter in Protected Branch increase indefinitely
Role counter should not increase that much in Project Settings/Repository/"Protected Branches".
Steps to reproduce
I this test on Gitlab.com.
- Go to Settings/Repository/"Protected Branches" on an existing project
- In the form "Protect a branch" click on "Allowed to push" select
- Keep clicking on the same role
This happen for new and existing rule.
What is the current bug behavior?
The counter of role increasing indefinitely.
What is the expected correct behavior?
The counter should work the same that "Allowed to merge" select button.