Skip to content
Snippets Groups Projects
Commit 88604c82 authored by Earl Miles's avatar Earl Miles
Browse files

Do not allow the "new" page to ever be locked since it does not really exist.

parent f8ade745
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,8 @@ function delegator_node_edit($node) { ...@@ -71,7 +71,8 @@ function delegator_node_edit($node) {
ctools_include('context-task-handler'); ctools_include('context-task-handler');
$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)); $arg = array(isset($node->nid) ? $node->nid : $node->type);
$output = ctools_context_handler_render($task, '', $contexts, $arg);
if ($output === FALSE) { if ($output === FALSE) {
// Fall back! // Fall back!
// We've already built the form with the context, so we can't build it again, or // We've already built the form with the context, so we can't build it again, or
......
...@@ -240,7 +240,12 @@ function delegator_page_get_page_cache($name) { ...@@ -240,7 +240,12 @@ function delegator_page_get_page_cache($name) {
$cache = delegator_page_load($name); $cache = delegator_page_load($name);
} }
$cache->locked = ctools_object_cache_test('delegator_page', $name); if ($name != '::new') {
$cache->locked = ctools_object_cache_test('delegator_page', $name);
}
else {
$cache->locked = FALSE;
}
return $cache; return $cache;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment