Closed (won't fix)
Project:
Community Tags
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2008 at 05:05 UTC
Updated:
17 Mar 2011 at 18:49 UTC
Hi, Not sure if the following is a bug/issue, or if it's by design:
- add community tag "foo" to a node not owned by the current user
- "foo" appears as a community tag, and as a "real" tag (term for the node)
- delete my community tag "foo"
- "foo" no longer appears a community tag, however it still exists as a "real" tag
Shouldn't the "real" tag be deleted as well (assuming of course that nobody else also tagged the node with "foo" as well)?
Thanks
Ryan
PS: this is a great module!
Comments
Comment #1
owahab commentedWell, this could go as a clean-up after removal.
Comment #2
jimjamjoh commentedI ran into this same behavior, which I classed as a bug, and made my own fix with the following code, which not only deletes the "real tag" references, but also deletes the tag from the vocabulary if no other node is tagged with it (this code appended to the bottom of function 'community_tags_taxonomy_node_save()');
Comment #3
geodaniel commentedThis looks like a duplicate of #175416: Removing a tag via "My Tags" list doesn't work, when I am the node author.
Comment #4
geodaniel commentedPerhaps not actually, as the other issue refers to own nodes, while this refers to others.
Comment #5
calebtr commentedI tried this patch and had no luck. This worked for me:
The difference is that I'm joining where tid + nid both match instead of just tid.
I don't see any reason to remove the term if it isn't anywhere else in the taxonomy or to update sequences, though other drupallers may know better.
Comment #6
calebtr commentedI noticed that the way I tried to do it removes tags from *any* vocabulary, not just the community tags vocabulary.
I promise to read up on how to submit an official patch and submit one if I can.
Comment #7
tqvn2004 commentedThis code works for me (both Community Tags for Drupal 5.x and 6.x):
Comment #8
entrigan commentedI cannot reproduce this issue. Perhaps its got fixed? tqvn can you explain how to reproduce the issue?
Comment #9
Matthew OMalley commentedI can reproduce the issue in the latest release on 5, 5.x-1.0-beta1.
1. add a tag to a node the user does not own
2. delete the tag from the node
The tag no longer displays in the Community Tags display, but it does still display as one of the Taxonomy Terms for the node (if you have taxonomy displaying).
Comment #10
Matthew OMalley commentedThe code in #7 above does not solve the problem in 5.x-1.0-beta1.
Comment #11
entrigan commentedmy bad, I did not realize people were still on 5.x :)
Comment #12
chaps2 commentedClosing as per #1068648: Community Tags 5.x no longer supported.