Duplicate view results show

Created on 1 June 2024, 4 months ago
Updated 16 July 2024, 2 months ago

Using Drupal 10.

Have two relationships and two contextual filters setup. For example, a "Project" content type is related to an "Application" and also a "Category" using a reference entity field. The Projects can be assigned to several Applications and Categories.

Am using contextual filters to filter the Projects by the ID of the page the user is on. So if on a "Category" page, it will list the Projects that have been assigned to the Category via the multi-select reference field.

It works fine when using a single contextual filter.

When we add a second contextual filter to also filter Projects by "Application", we of course receive 0 results before using "Views Contextual Filters OR".

We install Views Contextual Filters OR, and then we choose to enable the OR condition in the Advanced Queries settings.

If a Project has been assigned to 2 x categories, then that Project is now listed twice in the results when on a category page. If a project is assigned 3 categories, its shows 3 times, when we are only on the one category.

Disabling Views Contextual Filters OR and removing the second contextual filter (otherwise it will be 0 results) works fine again, it shows the projects only for this category page. So the ID filtering must be working OK.

Thanks

💬 Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom amityweb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024