Skip to content
Snippets Groups Projects

Resolve #3437381 "Ajax error undefined"

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -49,7 +49,7 @@ class FormAlter {
@@ -49,7 +49,7 @@ class FormAlter {
// Only alter the block configuration forms for inline or reusable
// Only alter the block configuration forms for inline or reusable
// block_content entity blocks, since they are primarily the ones afflicted
// block_content entity blocks, since they are primarily the ones afflicted
// with the conflict described above.
// with the conflict described above.
$is_reusable_block_content = $form['settings']['provider']['#value'] === 'block_content';
$is_reusable_block_content = ($form['settings']['provider']['#value'] ?? '') === 'block_content';
$is_inline_block = isset($form['settings']['block_form']['#block']) && $form['settings']['block_form']['#block'] instanceof BlockContent;
$is_inline_block = isset($form['settings']['block_form']['#block']) && $form['settings']['block_form']['#block'] instanceof BlockContent;
if (!$is_reusable_block_content && !$is_inline_block) {
if (!$is_reusable_block_content && !$is_inline_block) {
return;
return;
Loading