Active
Project:
Community Tags
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2011 at 13:36 UTC
Updated:
5 Aug 2013 at 16:23 UTC
Not sure how to classify this exactly... I first noticed this when I tried to use the community tags block in a popup. Every time I added a tag, upon returning to the node, the tag would be duplicated.
I now have the block in a hidden container that is activated with an onclick event but the resulting error is still the same, the block duplicates the tag.
This doesn't happen using the inline or tabbed form.
Comments
Comment #1
jillpadams commentedSubscribing. Using the block-community-tags block, tags a user has added show as duplicates. Adding a new tag causes the original duplicate tag to disappear after the AJAX submit.
Looking through the code, it looks like the original list on page load list gets built in the community_tags_flatten() fn, which iterates through all tags and prints them as $names, regardless of dupes. This list prints in the _community_tags_node_view() fn (line 586).
When the js runs updateList() after AJAX submit, this function cleans out the list and iterates through o.tags, which appears to have handled duplicates.
I'm not sure what the steps are to clean up the .module version that gets dupes into the list, but that's a lead, maybe?