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.

CommentFileSizeAuthor
content_taxonomy.multiterms.patch708 bytessutharsan

Comments

Anonymous’s picture

Worked for me

ngstigator’s picture

worked for me as well. logic in unpatched module is flawed, so it'd be nice to see this patch in the next release.

christefano’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for the patch, Sutharsan. It works for me.

open-keywords’s picture

Also works for me, thanks
And worth being released

bneel’s picture

Works fine. Must be ported.
Thanks again.
Ben

christefano’s picture

Title: Mulptiple terms displayed from different vocabs » Multiple terms displayed from different vocabs
p6’s picture

Does 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.

Anonymous’s picture

@p6

No that is a views 5.x issue. Please see: http://drupal.org/node/142347#new

magnus’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Cleanup 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.