Commit 86b58dbd authored by fmitchell's avatar fmitchell

Issue #1615258 by kepford: Views Field State Flow: Event links is Broken

parent 241146ee
7.x-2.x
--------------
#1615258: Views Field State Flow: Event links is Broken
#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
......
......@@ -19,8 +19,9 @@ class state_flow_handler_field_events extends views_handler_field {
}
$state_actions = array();
foreach ($state_events as $event) {
if (state_flow_access($state_node, $event)) {
$state_actions[] = l(drupal_ucfirst(t($event)), 'node/' . $state_node->nid . '/revisions/' . $state_node->vid . '/workflow/' . $event, array('query' => array('destination' => $_GET['q']))) . ' ';
$key = $event->key;
if (state_flow_access($state_node, $key)) {
$state_actions[] = l(drupal_ucfirst(t($key)), 'node/' . $state_node->nid . '/revisions/' . $state_node->vid . '/workflow/' . $key, array('query' => array('destination' => $_GET['q']))) . ' ';
}
}
$state_actions_str = implode(' | ', $state_actions);
......
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