Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
state_machine
Commits
f0fe7db8
Commit
f0fe7db8
authored
Jun 20, 2012
by
fmitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1493088
by Shawn_Smiley: Include the vid of a new draft in the node object
parent
99db616f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
CHANGELOG
CHANGELOG
+1
-0
modules/state_flow/state_flow.module
modules/state_flow/state_flow.module
+3
-0
No files found.
CHANGELOG
View file @
f0fe7db8
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
#1562058: No check for no existing states in State Flow
#1562044: No check for no Node bundles in State Flow
...
...
modules/state_flow/state_flow.module
View file @
f0fe7db8
...
...
@@ -443,6 +443,9 @@ function state_flow_prevent_live_revision($node) {
// redirect the user to the revision saved. This hijacks the redirection by
// drupal_goto().
$_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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment