Skip to content
Snippets Groups Projects
Commit d5936ac2 authored by Earl Miles's avatar Earl Miles Committed by James Gilliland
Browse files

Issue #1369852: node_view task needs to do a drupal_set_title or the node title will get lost.

parent dd14aa97
No related branches found
No related tags found
No related merge requests found
...@@ -83,6 +83,9 @@ function page_manager_node_view($node) { ...@@ -83,6 +83,9 @@ function page_manager_node_view($node) {
// Load the node into a context. // Load the node into a context.
ctools_include('context'); ctools_include('context');
ctools_include('context-task-handler'); ctools_include('context-task-handler');
// We need to mimic Drupal's behavior of setting the node title here.
drupal_set_title($node->title);
$contexts = ctools_context_handler_get_task_contexts($task, '', array($node)); $contexts = ctools_context_handler_get_task_contexts($task, '', array($node));
$output = ctools_context_handler_render($task, '', $contexts, array($node->nid)); $output = ctools_context_handler_render($task, '', $contexts, array($node->nid));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment