Skip to content
Snippets Groups Projects
Commit 96c8a1b7 authored by Eric Bremner's avatar Eric Bremner
Browse files

Merge branch 'feature/ISTWCMS-7131-kpaxman-fix_manual_block_warnings' into '1.1.x'

ISTWCMS-7131: don't try to check keys that aren't set

See merge request !250
parents d86c6d3c 5dbae525
No related branches found
No related tags found
1 merge request!250ISTWCMS-7131: don't try to check keys that aren't set
...@@ -262,12 +262,13 @@ class UwBlockManualElements { ...@@ -262,12 +262,13 @@ class UwBlockManualElements {
// If we are not updating a block, we have to get the node ids // If we are not updating a block, we have to get the node ids
// from the block config. // from the block config.
if (!$updating_block) { if (!$updating_block) {
if (isset($config[$name])) {
// Get the ids from the block config.
$ids = $config[$name][$ids_name];
// Get the ids from the block config. // Set the ids into the form state.
$ids = $config[$name][$ids_name]; $form_state->set($ids_name, $ids);
}
// Set the ids into the form state.
$form_state->set($ids_name, $ids);
} }
// If we are on updating a block, get the ids from the form_state. // If we are on updating a block, get the ids from the form_state.
else { else {
......
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