By dme69 on
Hello all,
I really need help.
I have a workflow and I'm creating an article when another document is validated.
I'm using workflo-ng for doing that.
The automatic creation is working and I can get (and set) the title. But I want to put the new article in the same txonomy term as the original document.
I'm trying this in php but it's not working :
$node_added->term = [node:term];
return array("node" => $node_added);
Please help me.
Dominique.
Comments
Help ... :-)
Nobody can help me ?
One or 2 hints ?
Thanks for yor precious help.
Dominique
I found the solution
After 1 week i found the solution :
I had a php action in my workflow-ng :
$existing = taxonomy_node_get_terms($node->nid);
$node_added->taxonomy = array_keys($existing);
node_save($node_added);