Closed (cannot reproduce)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 19:15 UTC
Updated:
24 Nov 2011 at 07:14 UTC
After days messing with it, I have given up trying to use CCK field has value. It doesn't match anything I've tried, always evaluating as FALSE. There is no documentation about this that I have yet found, so it is probably just me not having a clue. So I'll start this as a support request.
Comments
Comment #1
jbizzay commentedThere is no documentation that tells you that you can use tokens inside the php eval box. Furthermore, it says under the php evaluation tab that you can make use of php variables such as $node, $user, $author, etc... There doesn't seem to be any variables available. I checked this by adding dpm(get_defined_vars()); in the php box.
Instead of using
return array(0 => array('uid' => $user));
I had to use a token:
return array(0 => array('uid' => [user:uid]));
Comment #2
mitchell commentedOld issue. Please try latest versions and open a new support request if you need help.