I have observed that in cases where a node has a published revision with a vid lower than the max. revision for that node, the wrong term might be returned. This happens because Taxonomy Token does not take into account which revision is actually published for the node, but assumes the one with the highest vid is the right one, which is not always true.

This patch takes into account the vid of the node in question and retrieves only the term for that revision.

Comments

Anonymous’s picture

Thanks for this patch.
I had to remove an extra comma at the end $node->nid
But it works fine

achton’s picture

StatusFileSize
new957 bytes

Here's a corrected patch.