Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
7.x-3.0-beta3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2007 at 02:22 UTC
Updated:
11 Feb 2012 at 19:37 UTC
Adding the distinct filter to a view does not remove multiple results. I downgraded to 5.x-1.5 and it worked wonderfully.
Comments
Comment #1
fagoI've just tested the filter again and it's working for me. With which filters are you combining DISTINCT? Could you export your view?
Comment #2
merlinofchaos commentedThe same is true for me; I can't reproduce this without significantly more information.
Comment #3
omar commentedI can reproduce this problem. It seems to be independent of the "view type" and instead is related taxonomy terms associated to returned nodes.
Testing has revealed that the node is repeated according to the number of terms (cummulative over multiple vocabularies) associated to the returned node.
Note that in my case, the view in question only looks for "published" + content type "is one of" + is "distinct". i.e. it doesn't even refer to taxonomy.... and no, adding taxo filters didn't seem to change anything.
In case it makes a difference.. note that I am also using i18n.
Comment #4
Etanol commentedI can confirm it as well with 1.6 +
It's just node type + published + distinct, ordered by time published
the query is
the view is:
there are multiple reports of this error - will it be ever fixed?
Comment #5
mariagwyn commentedIt is possible I am having the same problem.
I am filtering, in this order:
Node, published, yes
Taxononomy for vocab X, 'is one of', about 5 selected terms.
Node: distinct
Arguments: summary sorted ascending.
Sort: Sticky and creation date.
If I remove 'Node:distinct' on the first page of the view, I see the list of terms with number of posts in parenthesis, if I click on the term, it shows the teasers of the nodes. If I keep 'Node: distinct', the list of terms on the first page repeats various terms with (1) following the term, and does not show other terms (which I know have nodes). However, when I click the term, there is more than one listing under the term.
Maria
Comment #6
catchhttp://drupal.org/node/83490
Comment #7
kulfi commentedI have marked my http://drupal.org/node/294748 as a duplicate of this one, but now I'm no longer sure. Distinct is not being enforced, but I am not filtering by taxonomy?
Comment #8
ashishkuc commentedIn Drupal 7 Add Distinct option from Views->advanced -> Query Settings
Comment #9
gnupdg commentedI have the same problem, i add "distinct" from "views -> advanced -> query settings" but it still doesn't work
Comment #10
rfulcher commentedI am having the same issue. Have an event content type with two dates and the event shows up twice. I want the event to show up once in the list. Query settings distinct is not dropping the second listing.