Currently, if there is a a published revision (revision 123) and there is a draft revision (revision 456), an admin can't unpublish the entire node (make in publicly inaccessible) without first activating revision 123. I'll post a post that will allow unpublishing of the entire node even if the active revision is not in a published state.

Comments

stevector’s picture

Status: Active » Needs review
StatusFileSize
new5.91 KB
stevector’s picture

Going over this with Robeano now. Need to add a test for unpublishing from revisions tab.

stevector’s picture

Here are more tests.

stevector’s picture

This patch has a corresponding issue in Workbench Moderation: #1973396: Support unpublishing when there is an active forward revision

robeano’s picture

Status: Needs review » Reviewed & tested by the community

I had to make a minor edit to get the tests to run: Updated class state_flow_entity_handler_field_state_flow_states_history_list in the pre_render() method to not pass $values by reference (which is fixed in another issue) - state_flow_entity_handler_field_state_flow_states_history_list.inc line 29.

Tests PASSED. Code reviewed: No changes needed. We're all set here.

stevector’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.