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

fuerst’s picture

Status: Active » Closed (won't fix)

Closed because nobody (myself included) seems to have problems with this.