ERS takes over all revisions tab pages, even for those content types it is not enabled for. Patch forthcoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1541152_fix_ers_revisions_tab.patch | 846 bytes | paul kim consulting |
ERS takes over all revisions tab pages, even for those content types it is not enabled for. Patch forthcoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1541152_fix_ers_revisions_tab.patch | 846 bytes | paul kim consulting |
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.