My node type has tags from three different vocabularies. Terms are added to the node with content taxonomy module (only). When the node is displayed each vocab lists all terms of all vocabs.
Data (confirmed in the database):
mynode - brown (vocab: color)
- oak (vocab: tree)
- forrest (vocab: environment)
Node view:
Color: brown, oak, forrest Tree: brown, oak, forrest Environment: brown, oak, forrest
A problem was found in the content_taxonomy_terms_by_field() function. It loads _all_ terms associated with the node from the database and returns the for _each_ field. The attached patch fixes this.
| Comment | File | Size | Author |
|---|---|---|---|
| content_taxonomy.multiterms.patch | 708 bytes | sutharsan |
Comments
Comment #1
Anonymous (not verified) commentedWorked for me
Comment #2
ngstigator commentedworked for me as well. logic in unpatched module is flawed, so it'd be nice to see this patch in the next release.
Comment #3
christefano commentedThanks for the patch, Sutharsan. It works for me.
Comment #4
open-keywords commentedAlso works for me, thanks
And worth being released
Comment #5
bneel commentedWorks fine. Must be ported.
Thanks again.
Ben
Comment #6
christefano commentedComment #7
p6 commentedDoes this fix the issue with the view filter as well?
Doesn't seem to, atleast for me.
when filtering by content taxonomy, it still throws up all the terms there are.
Comment #8
Anonymous (not verified) commented@p6
No that is a views 5.x issue. Please see: http://drupal.org/node/142347#new
Comment #9
magnus commentedCleanup of old issues. According to maintainer: "active development is only done for the 6.x branch! 5.x is not supported any more".
Open a new issue if problem still exist.