Commit c539c4f7 authored by frobinrobin's avatar frobinrobin Committed by japerry

Issue #2609528 by frobinrobin: Node Edit Panel: Cannot use object of type ctools_context as array

parent 28f33d46
......@@ -1176,7 +1176,7 @@ function panels_render_display(&$display, $renderer = NULL) {
if ($form_context = ctools_context_get_form($display->context)) {
$form_context->form['#theme'] = 'panels_render_display_form';
if (empty($form_context->form['#theme_wrappers']) || !in_array('form', $form_context->form['#theme_wrappers'])) {
$form_context['#theme_wrappers'][] = 'form';
$form_context->form['#theme_wrappers'][] = 'form';
}
$form_context->form['#display'] = &$display;
return $form_context->form;
......
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