Request:

If the token module is installed, call token_get_values('global', NULL, TRUE); after the node has been converted in the function node_convert_node_convert

The function call token_get_values('global', NULL, TRUE); will reset the token cache.

Reasons:

In cases where you have defined some token values for the converted node and a call to get all tokens has been placed before the conversion by any module, any call to token_replace after the conversion will return the cached value from before the conversion.

Comments

mattwmc’s picture

Is this why after I converted I now get the following?

[field_date-month] [field_date-dd], [field_date-yyyy] [field_date-time]

Is there a fix?

I can go back and edit the node and fix the date, but that kinda defeats the purpose of this - doesn't it?

What would I have to do? Not use tokens?

*I don't recall seeing any documentation in the Read Me, but this should be known as all the nodes I changed now are messed up! Thankfully, there is not a lot.

alcroito’s picture

Status: Active » Fixed

Thanks. Fixed in dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.