Closed (fixed)
Project:
Node Convert
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2010 at 17:55 UTC
Updated:
23 Jan 2011 at 19:30 UTC
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
Comment #1
mattwmc commentedIs this why after I converted I now get the following?
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.
Comment #2
alcroito commentedThanks. Fixed in dev.