From 742d7ae1d2a0028322c864eaab0a6b635f022058 Mon Sep 17 00:00:00 2001
From: Kevin Paxman <kpaxman@uwaterloo.ca>
Date: Tue, 8 Nov 2022 15:50:06 -0500
Subject: [PATCH] ISTWCMS-5880: only load styles from the default group, which
 contains the section widths - needed for when other section styles ship

---
 uw_cfg_common.module | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/uw_cfg_common.module b/uw_cfg_common.module
index 3aa19a0c..d3b0b0a9 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -604,13 +604,17 @@ function _uw_cfg_common_get_layout_builder_styles(
 
   // Get all the styles for sections.
   $all_styles = _layout_builder_styles_retrieve_by_type('section');
-
   // Array of options.
   $options = [];
 
   // Step through each style and get the info.
   foreach ($all_styles as $style) {
-    $options[$style->id()] = $style->label();
+    // Only load styles from the "default" group,
+    // which contains the section widths.
+    // Needed for when other section styles ship.
+    if ($style->getGroup() == 'default') {
+      $options[$style->id()] = $style->label();
+    }
   }
 
   return $options;
-- 
GitLab