D6 added support for revisioning taxonomy assignments.
Originally posted at:
http://groups.drupal.org/node/10840
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | taxonomy_views_field.patch | 1.41 KB | cpugeniusmv |
D6 added support for revisioning taxonomy assignments.
Originally posted at:
http://groups.drupal.org/node/10840
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | taxonomy_views_field.patch | 1.41 KB | cpugeniusmv |
Comments
Comment #1
merlinofchaos commentedWhat's weird is that I was already linking term_node to node_revision via nid, but when linking to the node table I was still using nid.
I think this is a case of me doing so much I couldn't see the forest through the trees.
Comment #2
cpugeniusmv commentedI think I've found another place where this needs to be addressed. I've got a view that uses some "Taxonomy: All terms" fields (all of which are limiting terms by vocabulary, which seems to be working). What's not working is that I'm getting all of the terms from every revision.
I'm pretty sure the problem lies within the "views_handler_field_term_node_tid" class (in file: modules/taxonomy.views.inc) in the db_query call in the pre_render function.
I'm not at all familiar with the internals of views, so I hope that's clear enough.
Comment #3
merlinofchaos commentedYou are correct; it's linking via nid when it should be vid.
Comment #4
merlinofchaos commentedFixed in CVS. Thanks!
Comment #5
cpugeniusmv commentedThe $vids variable was already being used in the previous revision on lines 364, 366, and 369 to conditionally add the AND for limiting terms by vocabulary. The use of $vids in the new revision for the revision IDs probably broke that.
Comment #6
merlinofchaos commentedYup, you're right. I'm way too tired to be doing this. I should've left that for tomorrow.
Comment #7
cpugeniusmv commentedHope you're not still up :). This turned out to be a pretty interesting problem.
The vid (vocabulary id) from the term_data table was conflicting with the vid (version id) from the term_node table in the result set. The patch gives the term_node.vid an alias, node_vid. I tested it out and it works for me.
Comment #8
merlinofchaos commentedOi. No, I went to bed. Thank you for the patch. I'm definitely ready to put THIS one to bed. =)
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.