Commit 7bceda93 authored by mikemadison's avatar mikemadison Committed by borisson_

Issue #2994768 by mikemadison: Facet / Panelizer Configuration Incompatibility

parent 5af27133
...@@ -157,10 +157,13 @@ class FacetBlock extends BlockBase implements ContainerFactoryPluginInterface { ...@@ -157,10 +157,13 @@ class FacetBlock extends BlockBase implements ContainerFactoryPluginInterface {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function blockSubmit($form, FormStateInterface $form_state) { public function blockSubmit($form, FormStateInterface $form_state) {
// Save block id to configuration, we do this for loading the original block // Checks for a valid form id. Panelizer does not generate one.
// with ajax. if (isset($form['id']['#value'])) {
$block_id = $form['id']['#value']; // Save block id to configuration, we do this for loading the original block
$this->configuration['block_id'] = $block_id; // with ajax.
$block_id = $form['id']['#value'];
$this->configuration['block_id'] = $block_id;
}
} }
} }
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