Skip to content

ListView UI - Content Type filters inconsistency #10726

@ypcode

Description

@ypcode

Hi there,

We discovered a strange behavior in the OOTB list view filters especially for Content Type filters.
It looks like it started happening since the recent UI rollout.

IMHO it is a UI bug since the UI does not behave consistently for Content Types filters depending on the "entry point".

Let's take a library with multiple content types applied to it. (At least 4 per my tests) with multiple documents having different content types
Image

If we filter the content type by right clicking the Content Type column header > Filter and select 3 content types

Image Image

We get the expected result, Only the documents with the filtered content types

Image

But, if we use the filters panel

Image

We select a first Content Type, this works

Image

If we select 2 or more content types, then the filtered results are empty

Image

But wait, If I then unselect the second content type, the filtered results come back BUT , I now see the ID of the content type as selected filter:

Image

Also, if I click the "See all" link with 2 content types selected, I see a list of duplicated content types (and duplicates are selected/unselected together with ticking

Image

With a bit of investigation, we also noticed that the method that works generate a URL with the name of the content type in the query string parameters, whereas the values are the IDs for the method that does not work

URL that does work :
https://xxxx.sharepoint.com/sites/Conferences/Documents%20partages/Forms/AllItems.aspx?FilterFields1=ContentType&FilterValues1=PVX%20Received%20Invoice%3B%23Document&FilterTypes1=Computed&viewid=4447b6f0%2D1f94%2D4324%2D805f%2D9b2c0e7475bb

URL that does not work : https://xxxx.sharepoint.com/sites/Conferences/Documents%20partages/Forms/AllItems.aspx?FilterFields1=ContentType&FilterValues1=0x01010083FEC5D8D3616644A6A8EDCC6E85941C%3B%230x0101004FD1D8AA2681A94983C7D079D33C99820037683A3469C6914E9440E2B23856ED08&FilterTypes1=Computed&FilterDisplays1=PVX%20Received%20Invoice&FilterOp1=In&viewid=4447b6f0%2D1f94%2D4324%2D805f%2D9b2c0e7475bb

Could you please have a look at this ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions