Hi,
I'm currently playing around with the beta3 version of the module.
I have set up a trigger on adding a new node, with a few basic conditions and they work fine.
So I started trying to get some custom php conditions working and have hit a wall.
I have a taxonomy term on my node and want to do stuff based on its value.. What seems to be happening is the node save (rule) is kicking in before the save of the taxonomy terms because its blank when i view the node afterwards. I could be doing this completly the wrong have a look :
$external = db_result(db_query("SELECT count(*) FROM {term_node} WHERE nid = '%d' and tid = '%d'", $node->nid, 45));
if ($external > 0){
return 1;
}
else{
return 0;
}
Thanks
Keith
Comments
try activating the rules
try activating the rules debug logging in its settings, then you'll see what rules is executing first.
I had a similar problem with
I had a similar problem with taxonomy term tokens where tokens consisted of values before save. In my case the solution was allowing taxonomy.module do its thing before rules.module by changing rules.module weight to 1.