From aa166bbaf3db86fec5a97c433e7fd63dfa4c19bf Mon Sep 17 00:00:00 2001 From: Kevin Paxman <kpaxman@uwaterloo.ca> Date: Thu, 20 Oct 2022 15:52:09 -0400 Subject: [PATCH] ISTWCMS-5879: fix issue where settings couldn't be set, and remove duplicate --- uw_cfg_common.module | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 6eea446d..cae598c9 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -246,17 +246,14 @@ function uw_cfg_common_form_layout_builder_configure_section_alter(array &$form, // Column separator group should not appear one column. if (isset($form['layout_builder_style_column_separator'])) { // Ensuring that none is selected for column separator by default. - $form['layout_builder_style_column_separator']['#default_value'] = 'uw_lbs_column_separator_none'; + $form['layout_builder_style_column_separator']['#default_value']['uw_lbs_column_separator_none'] = 'uw_lbs_column_separator_none'; } // Ensuring that none is selected for section separator by default. - $form['layout_builder_style_section_separator']['#default_value'] = 'uw_lbs_section_separator_none'; + $form['layout_builder_style_section_separator']['#default_value']['uw_lbs_section_separator_none'] = 'uw_lbs_section_separator_none'; // Ensuring that default is selected for section spacing by default. - $form['layout_builder_style_section_spacing']['#default_value'] = 'uw_lbs_section_spacing_default'; - - // Ensuring that default is selected for section spacing by default. - $form['layout_builder_style_section_spacing']['#default_value'] = 'uw_lbs_section_spacing_default'; + $form['layout_builder_style_section_spacing']['#default_value']['uw_lbs_section_spacing_default'] = 'uw_lbs_section_spacing_default'; // Ensuring that the contained width is selected by default. $form['layout_builder_style_default']['#default_value']['uw_lbs_contained_width'] = 'uw_lbs_contained_width'; -- GitLab