Closed (won't fix)
Project:
Token
Version:
6.x-1.16
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 14:48 UTC
Updated:
25 Jun 2013 at 07:21 UTC
node_token_values() expects the elements of $node->taxonomy to be Term objects (as they are when loading a node object using node_load()). During the update or presave operations of hook_nodeapi() the elements are simple numeric values representing the Term ID. Therefor node_token_values() doesn't recognizes the changed Term ID(s) and loads the previous term object(s) from the database. That's why tokens like [term-raw] do not work, at least when using the auto_nodetitle module.
Is this a bug or wanted behaviour?
Comments
Comment #1
fuerst commentedClosed because nobody (myself included) seems to have problems with this.