- 🇮🇳India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
Re-roll The #2 Patch For 10.1 branch.
- 🇪🇸Spain joe_carvajal Seville (Spain)
#18 worked perfectly for me using Drupal 10.3.1. Before the patch, some views didn't apply the DISTINCT in the query despite of being enabled in the views config. After applying it, all of them worked.
- First commit to issue fork.
- First commit to issue fork.
- Merge request !9777Created MR for patch changes in #18 for 11.x branch. → (Open) created by mrinalini9
- 🇮🇳India mrinalini9 New Delhi
Created MR for patch changes in #18 for 11.x branch, please review it.
Thanks!
The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- Status changed to Postponed: needs info
3 months ago 5:02pm 7 February 2025 - 🇷🇴Romania vasike Ramnicu Valcea
I can't replicate this anymore .. I remember it happened
And the patched solved the issue (in the past)If Anyone could share a replicable View config for this ... so maybe it could be used for tests
- 🇨🇭Switzerland boregar
Hello, patch #18 solved the issue for me, using Drupal 11.1.5
My way to reproduce the issue:
- Add a field referencing a taxonomy (eg "tags") to a media content type
- Create some media content filling the tags field for some and leaving it empty for others
- Create a view listing media content
- Add a filter to the view on the tags field, choose "is not empty (NOT NULL)"
Whether you check the "Distinct" checkbox in the Other>Query settings parameters tab, the result is:
- the word DISTINCT is not present in the SQL query
- the media contents are displayed as many times as the number of tags they are linked to
After applying the patch #18, the result is correct:
- the word DISTINCT is present in the SQL query
- the media contents are displayed only one time times as long as they are linked to at least one tag
- 🇧🇾Belarus dewalt
@vasike please don't forget to provide Drupal version it isn't reproduced more and more details that are related to described behaviors above. I see @boregar confirmed that issue still has place.