Commit 2e226e9a authored by Dries's avatar Dries

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

parent 92836163
......@@ -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,
......
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