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