Should we add

case 'workflow':
If isset($data['node']) {
case 'workflow':
$node = $data['node'];
......
}

Comments

shenzhuxi’s picture

StatusFileSize
new817 bytes

patch for 7.x-1.x

shenzhuxi’s picture

StatusFileSize
new808 bytes

Patch for 7.x-1.0

berenddeboer’s picture

Status: Active » Reviewed & tested by the community

Works for me.

gkom’s picture

Works for me too. Thank you very much.

nancydru’s picture

I'm not seeing this. Could you try out the latest -dev, please?

haggan’s picture

I see this in dev version 26
path
/admin/content

Notice: Undefined index: node in workflow_tokens() (line 149 of /var/www/drupalinstall/sites/all/modules/workflow/workflow.module).
Notice: Trying to get property of non-object in workflow_tokens() (line 150 of /var/www/drupalinstall/sites/all/modules/workflow/workflow.module).

nancydru’s picture

I did a commit yesterday that might have fixed it. That patch was from one of the Token gurus.

nancydru’s picture

nancydru’s picture

Status: Reviewed & tested by the community » Closed (fixed)

I can not reproduce this in the current code.