Closed (fixed)
Project:
Workflow
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Jan 2013 at 21:14 UTC
Updated:
23 Apr 2013 at 23:30 UTC
• Notice: Undefined property: stdClass::$name in workflow_tokens() (line 203 of C:\Users\JackVo\Sites\Drupal\sites\all\modules\workflow\workflow.module).
• Notice: Undefined property: stdClass::$name in workflow_tokens() (line 203 of C:\Users\JackVo\Sites\Drupal\sites\all\modules\workflow\workflow.module).
To Fix:
delete line 203
-$user_name = $node->uid ? $node->name : variable_get('anonymous', 'Anonymous');
Add in where delete (line 203)
+$user_name = $node->uid ? (isset($node->name) ? $node->name : variable_get('anonymous', 'Anonymous')) : variable_get('anonymous', 'Anonymous');
Comments
Comment #1
nancydruThat line was changed in the current -dev release, please test that.
Comment #2
msbrar commentedGot the latest version and the line does not seem to have been changed. Made the above change in workflow.tokens.inc and it worked
Comment #3
nancydruThat line is in two places, which did you change?
Comment #4
nancydruCommitted