Commit f0fe7db8 authored by fmitchell's avatar fmitchell

Issue #1493088 by Shawn_Smiley: Include the vid of a new draft in the node object

parent 99db616f
7.x-2.x 7.x-2.x
-------------- --------------
#1493088: Include the vid of a new draft in the node object
#1528968: Provide hooks for altering the workflow tab content #1528968: Provide hooks for altering the workflow tab content
#1562058: No check for no existing states in State Flow #1562058: No check for no existing states in State Flow
#1562044: No check for no Node bundles in State Flow #1562044: No check for no Node bundles in State Flow
......
...@@ -443,6 +443,9 @@ function state_flow_prevent_live_revision($node) { ...@@ -443,6 +443,9 @@ function state_flow_prevent_live_revision($node) {
// redirect the user to the revision saved. This hijacks the redirection by // redirect the user to the revision saved. This hijacks the redirection by
// drupal_goto(). // drupal_goto().
$_GET['destination'] = 'node/' . $node->nid . '/revisions/' . $node->vid . '/view'; $_GET['destination'] = 'node/' . $node->nid . '/revisions/' . $node->vid . '/view';
// Save the vid for the draft revision back to the node in case other modules need it.
$node->new_draft_vid = $node->vid;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment