Download & Extend

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

Project:Workflow-ng
Version:5.x-2.2
Component:Wng API
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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?

Comments

#1

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

But the other fields are? Is that intentional?

#3

Status:fixed» closed (fixed)

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

#4

Version:5.x-2.1» 5.x-2.2
Status:closed (fixed)» 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

Title:empty [node_added:nid]» empty [node_added:nid] and [node_loaded:nid]
nobody click here