Description
- Gitea version (or commit ref): 1.9.0+dev-382-gc37ec66ee
- Operating system: Linux (Devuan)
- Browser: FireFox
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
Closing issue(s) by using batch checkbox leaves wrong item ticked.
Reproduce
- View a list of OPEN issues with more than 1 issue.
- Use the batch operations checkboxes to select the FIRST item
- Use the batch operations close button to close the issue
Expected
The issue is closed, and is removed from the list. No other issues are ticked.
Actual
The issue is close and removed as expected, however the position it was at remains ticked. As the issues have all moved up to fill the space, now an unrelated issue is ticked.
Problem
A second click of the close button could close the wrong issue. Or if we wish to do another batch operation we need to untick all the wrong ticks.
Fix
Untick all checkboxes after batch operation, but only if the operation was CLOSE.
I can see this is useful to keep them ticked if we are modifying milestone or label as we may want to preform another operation on the same issues, so I don't think we want to remove this functionality completely.