empty [node_added:nid] and [node_loaded:nid]

kulfi - June 24, 2008 - 03:33
Project:Workflow-ng
Version:5.x-2.2
Component:Wng API
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a workflow which creates a node when another node is updated. I also have custom PHP code in this workflow. I can access some tokens like [node_added:title], but [node_added:nid] is blank. Any thoughts?

#1

fago - June 25, 2008 - 09:17
Status:active» fixed

probably the nid is not set right now. e.g. on content is about to be submitted when it's created.

#2

kulfi - June 25, 2008 - 09:34

But the other fields are? Is that intentional?

#3

Anonymous (not verified) - July 9, 2008 - 09:44
Status:fixed» closed

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

#4

burlap - September 7, 2009 - 07:53
Version:5.x-2.1» 5.x-2.2
Status:closed» active

This is also the case for example for node_loaded - most tokens (I haven't tried all) work, while [node_loaded:nid] doesn't. And for node_added: if node_added:title is available, why node_added:nid shouldn't?

#5

burlap - September 7, 2009 - 07:54
Title:empty [node_added:nid]» empty [node_added:nid] and [node_loaded:nid]
 
 

Drupal is a registered trademark of Dries Buytaert.