Hi (again :))
I've just been testing the latest 7.x-1.x dev branch as I am keen to update to it. I've found an issue though where if a node is published, then edited and saved again, the newly created (unpublished) revision has it's status set to 1 in the database. This means things like the latest published revision filter in views doesn't work etc.
Please see screenshot for the settings I have on the content type.
Note: if I revert back to my previous version of revisioning, I get correctly behaving revision statuses.
Let me know if you need any more info.
Cheers,
Adam
| Comment | File | Size | Author |
|---|---|---|---|
| revisioning-options.png | 54.3 KB | acbramley |
Comments
Comment #1
acbramley commentedI would think this is almost certainly due to this code in revisioning_node_presave().
Comment #2
acbramley commentedHmmm, on second thought probably not as auto publish is turned off for this content type.
Comment #3
acbramley commentedPossibly caused by
in revisioning_node_update()?
Comment #4
rdeboerWill work on this this weekend.
Comment #5
rdeboerHi Adam,
Revisioning does not (or no longer) update the status flag on the {node_revision} table. Core does that, but it doesn't do anything with it. The status flag on the {node}, rather than the {node_revision} table determines whether the content revision pointed to from the node is published or not.
The status on the {node_revision} table is just a reflection of the status the node had when the revision was created. But I don't believe it is used for any purpose in D7. Maybe there are plans to use it in D8, I don't know.
Anyway, I had a look at the filters 'Content revision: latest' and 'Content revision: latest published' and found that they were broken due to recent changes in Views 3.x.
So I've fixed them and also made them optionally exposed.
See how you go.
Rik
Disclaimer: these two filter are for 'Content revision' Views only. While they come up as options for 'Content' Views, they won't work.
Comment #6
acbramley commentedAwesome that worked :)
Comment #7
rdeboer:-)