Closed (duplicate)
Project:
Article
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2005 at 10:19 UTC
Updated:
24 Oct 2005 at 05:40 UTC
The 'latest articles' section repeats the listing for articles, once for each taxonomy term it has. So, for example, if an article has 3 terms associated with it, it will appear three times in the list.
The fix was a simple matter of adding 'DISTINCT' to the SQL query. A patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| distinct.diff | 1.01 KB | tomchance@www.remixreading.org |
Comments
Comment #1
tomchance@www.remixreading.org commentedJust updating the status to reflect the fact that I included a patch...
Comment #2
tomchance@www.remixreading.org commentedAnd another update... the article listings exhibit the same problem. However, I'm not able to fix this one because it seems to be a more general taxonomy issue, one that I can't isolate at the moment.
Have a look, for example, at this listing:
http://tom.acrewoods.net/writing/technology
And at the count for the technology category on:
http://tom.acrewoods.net/writing
All the articles that are members of the "KDE" category and the parent category "Technology" are listed twice. It can be solved by only selecting "KDE", but then this seems unintuitive to me: if you are only supposed to select the lowest-level category in a hierarchy, the form should reflect this.
Comment #3
tomchance@www.remixreading.org commentedActually, ignore those URLs... I've done some SQL surgery to ensure that the listings are correct for now, by ensuring that no node has both Technology and KDE as terms.
Comment #4
onedrupaluser commentedSame problem here. Latest articles is useless as the same article gets repeated several times.
(drupal 4.6.1, Apache2, PHP5)
Chris
Comment #5
green monkey commentedi'm a little confused by this thread.
Is this or can this be repaired... patched?
thanks
Comment #6
gtoddv commentedYes, could someone please clarify if this is something that can be fixed?
Thanks in advance.
Comment #7
boris mann commentedDuplicate of 28566.