Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 9239386a authored by Andreas Hennings's avatar Andreas Hennings
Browse files

OEL-1525: Make view id and display id required if autocomplete is checked.

parent 78f74adf
No related branches found
No related tags found
2 merge requests!135Update EPIC-1293-Project,!130OEL-1525: Uninitialized config keys in SearchBlock
......@@ -194,6 +194,9 @@ class SearchBlock extends BlockBase implements ContainerFactoryPluginInterface {
'visible' => [
':input[name="settings[enable_autocomplete]"]' => ['checked' => TRUE],
],
'required' => [
':input[name="settings[enable_autocomplete]"]' => ['checked' => TRUE],
],
],
];
$form['view_display'] = [
......@@ -205,6 +208,9 @@ class SearchBlock extends BlockBase implements ContainerFactoryPluginInterface {
'visible' => [
':input[name="settings[enable_autocomplete]"]' => ['checked' => TRUE],
],
'required' => [
':input[name="settings[enable_autocomplete]"]' => ['checked' => TRUE],
],
],
];
......
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