Closed (duplicate)
Project:
Category
Version:
master
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2006 at 21:41 UTC
Updated:
18 Sep 2006 at 01:08 UTC
I've switched to the Category module and everything went OK, untill I've noticed, that some related links listed below the nodes with categories (at least one) assigned are doubled. After some investigation I've found out that it is always the last related link, that is listed twice.
It doesn't matter, if it is a category imported from previous taxonomy structure or new one. I've also tried to delete the category and insert it again, but this did not help.
It's always the last one listed -- when I assign yet another category to the node and that new category is listed at the end of the related links, it is displayed twice instead of the previous one.
I hope I'm clear enough :-)
Marek
Comments
Comment #1
venkat-rk commentedThis is a bug that was introduced when a patch was added to make category provide better integration with the views module. I think it will remain until Jaza or anyone else can make another patch that takes care of this.
In the meanwhile, you can uncheck the 'display links to categories on assigned nodes' in the category_display settings of your container to avoid this.
Comment #2
vatavale commentedComment #3
chrislynch commentedNot a genuine fix, but you can work around this temporarily in your theme in a safe way that will not lose any links if and when you patch your site with the fix to this bug.
From my adapted sands theme:
This checks each link against the previous one and removes any duplicates. As it only seems to be the last link the chain that is duplicated, this removes it automatically. When the category module stops producing the extra link, this change will simply do nothing (as there will be no dupes) and be removed for efficiency or harmlessly left in place.
Comment #4
chrislynch commentedDoh - previous block of code actually took out non-dupes from the end as well. Here's a better version for anyone still wanting links
Comment #5
bdragon commentedMarking as duplicate of
http://drupal.org/node/74629
Please watch that issue for updates.
Thank you for your patience.
--Brandon