Duplicate view results show

Created on 1 June 2024, about 1 year 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, EVEN THOUGH we are on just one oif the project pages.

Strangely it does not duplicate depending on the number of Applications we assign. It only duplicates the number of times we assign a project to the Category.

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