Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicates from species media view #6129

Merged
merged 2 commits into from
Feb 3, 2020

Conversation

jrdh
Copy link
Member

@jrdh jrdh commented Jan 30, 2020

Fixes #5737.

Files associated with a taxonomic term seem to be duplicated because multiple
relationship rows are created in the field_data_field_taxonomic_name table
to reflect the various languages available on the scratchpad. This seems a bit
odd but presumably is the desired behaviour and I managed to find other users
with the same kind of problem where duplicated are shown based on a language
issue. One suggested fix is to use the field language setting on the view but
we already have this set (Field Language:Current user's language) so instead
I've added a distinct to the query to avoid duplicate file ids form being
returned and then displayed.
@PaulKiddle PaulKiddle merged commit 45ec642 into master Feb 3, 2020
@PaulKiddle PaulKiddle deleted the josh/remove_duplicates_from_species_media_view branch February 3, 2020 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicated (Triplicated? Quadricated?) Images on taxon pages
2 participants