Skip to content
Snippets Groups Projects
Commit 2e226e9a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #936582 by Haza, joachim: fixed empty block at foot of dashboard block admin page.

parent 92836163
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -148,8 +148,10 @@ function block_admin_display_form($form, &$form_state, $blocks, $theme, $block_r
);
}
}
// Do not allow disabling the main system content block.
$form['blocks']['system_main']['region']['#required'] = TRUE;
// Do not allow disabling the main system content block when it is present.
if (isset($form['blocks']['system_main']['region'])) {
$form['blocks']['system_main']['region']['#required'] = TRUE;
}
$form['actions'] = array(
'#tree' => FALSE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment