Needs work
Project:
Entity revision scheduling
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2012 at 19:32 UTC
Updated:
14 Nov 2012 at 05:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
paul kim consulting commentedComment #2
paul kim consulting commentedComment #3
caschbre commentedThis doesn't appear to be working as expected.
The condition:
if (!in_array($node->type, $ers_nodes)) {is always finding the node type in the array. In my case I do *not* have ers configured for my blog node type. In the ers_nodes array you'll still find 'blog' in as a key with a value of 0.
I don't have my site in front of me at the moment, but I changed that condition to something along the lines of...
if (!in_array($node->type, $ers_nodes) || (in_array($node->type, $ers_nodes) && $ers_nodes[$node->type] == 0)) {I'm sure there's a better way to write that.