Opened 9 years ago

Closed 9 years ago

#1968 closed enhancement (fixed)

Add support for filtering on more columns in the trashcan

Reported by: Nicklas Nordborg Owned by: everyone
Priority: major Milestone: BASE 3.7
Component: core Version:
Keywords: Cc:

Description

Currently, the trashcan only supports filtering on item item type. It would be nice to also be able to filter on other properties.

A similar feature was implemented for the "Project items" and "All items" lists in #1421. The trashcan is a bit different since except for the ID property the items may not have the other properties.

But since we are loading one item type at a time we "only" need a way to be able to dynamically use or not use a filter.

Change History (1)

comment:1 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: newclosed

(In [7018]) Fixes #1968: Add support for filtering on more columns in the trashcan

The ConditionalQueryElement provides the support we need for selectively enable/disable a restriction based on the return type of the query. This means that a single restriction can be used to filter on 'name' for nameable items while staying out of the way (1=1) for other items.

All columns in the trashcan should now provide a filtering functionality. Also added 'Shared to' column.

Note: See TracTickets for help on using tickets.