Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ctools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
ctools
Commits
88604c82
Commit
88604c82
authored
15 years ago
by
Earl Miles
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
delegator/plugins/tasks/node_edit.inc
+2
-1
2 additions, 1 deletion
delegator/plugins/tasks/node_edit.inc
delegator/plugins/tasks/page.admin.inc
+6
-1
6 additions, 1 deletion
delegator/plugins/tasks/page.admin.inc
with
8 additions
and
2 deletions
delegator/plugins/tasks/node_edit.inc
+
2
−
1
View file @
88604c82
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
delegator/plugins/tasks/page.admin.inc
+
6
−
1
View file @
88604c82
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment