Skip to content
Snippets Groups Projects
Commit 9ab22515 authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3408816 by Grimreaper, Sharique: When editing a paragraph type, all checkboxes are checked

parent 4addc736
No related branches found
No related tags found
1 merge request!1Issue #3408816 by Grimreaper, Sharique: When editing a paragraph type, all checkboxes are checked
......@@ -180,7 +180,7 @@ class UIStyleOptions extends ParagraphsBehaviorBase {
// @phpstan-ignore-next-line
$form['enabled_styles'][$group_key]['#open'] = $opened_group;
if (isset($this->configuration['enabled_styles'][$group_key])) {
$plugin_element['#default_value'] = isset($this->configuration['enabled_styles'][$group_key][$style_plugin_id]) ? $style_plugin_id : '';
$plugin_element['#default_value'] = $this->configuration['enabled_styles'][$group_key][$style_plugin_id] ?? '';
}
$form['enabled_styles'][$group_key][$style_plugin_id] = $plugin_element;
}
......
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