Skip to content

Closing issue(s) by using batch checkbox leaves wrong item ticked.  #7311

Closed
@bobemoe

Description

@bobemoe
  • 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

  1. View a list of OPEN issues with more than 1 issue.
  2. Use the batch operations checkboxes to select the FIRST item
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions