Skip to content

Sorting the trash overview by the Status column leaves the list unsorted #4274

Closed as not planned

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

In the trash overview's table view, the "Status" column header is sortable, but the view only sorts by name. ResourceTable decides on its own which headers are sortable (determineResourceTableSortFields(resources[0]), which returns spaceTableSortFields with indicators for spaces), and the status column is always shown. The sort-fields the views pass only end up as an HTML attribute, they don't reach the table's headers. Clicking "Status" sets sort-by=indicators, which isn't one of the view's sort fields, so sortHelper returns the list unsorted and Personal is no longer on top. The value is persisted, so the trash overview stays unsorted on the next visit too. On main the same click throws Cannot read properties of undefined (reading 'toString').

Reproduction Steps

  1. Have a few project spaces with deleted files
  2. Open /files/trash/overview?view-mode=resource-table
  3. Click the "Status" column header

Expected Outcome

The "Status" header isn't sortable in the trash overview (only the name is), or the list stays sorted by name.

Actual Outcome

The URL gets sort-by=indicators, the header shows Status as the sorted column, the list isn't sorted anymore and stays like that after reopening the trash overview.

Activity

  1. AlexAndBear commented on Nov 4, 2026

    @AlexAndBear
    MemberAuthor

    Covered by #4270.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions