Commit a1d0ee89 authored by fmitchell's avatar fmitchell
Browse files

Issue #1778082 by alphageekboy: Add pathauto support for state_flow

parent 0cb8e7c1
7.x-2.x
--------------
#1778082: Add pathauto support for state_flow
#1701622: On hook_state_flow_event_fired, $node is sometimes not an object/null
#1615258: Views Field State Flow: Event links is Broken
#1493088: Include the vid of a new draft in the node object
......
......@@ -479,6 +479,11 @@ function state_flow_promote_node_revision($rev_state_rec, $nid, $current_vid) {
if ($path === FALSE) {
$path = array();
}
if (module_exists('pathauto')) {
if (isset($current_rev->path)) {
$path['pathauto'] += $current_rev->path['pathauto'];
}
}
if (isset($current_rev->path)) {
$path += $current_rev->path;
}
......
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