Current version of drupal bootstrap theme (7.x-3.0) has broken collapsible field sets in webform.
Newer version of bootstrap (7.x-3.1) fixes this but also breaks side menu in boundless.
Applying patch file fixes the issue:
1) Save patch file (inline below) to the /sites/.../themes/bootstrap folder as filename.patch
2) At command prompt cd to the /sites/.../themes/bootstrap folder
2) At command prompt type: patch -p1 < filename.patch
3) Clear cache, refresh page
Patch file below this line:
diff --git a/bootstrap_subtheme/less/overrides.less b/bootstrap_subtheme/less/overrides.less
index c12e778..fa2d051 100644
--- a/bootstrap_subtheme/less/overrides.less
+++ b/bootstrap_subtheme/less/overrides.less
@@ -20,7 +20,9 @@ html {
&.js {
// Collapsible fieldsets.
fieldset.collapsed {
}
+
// The .form-wrapper class is required for #states to treat fieldsets like
// containers.
if (!isset($element['#attributes']['class'])) {
diff --git a/theme/bootstrap/bootstrap-panel.vars.php b/theme/bootstrap/bootstrap-panel.vars.php
index 53cad90..2674d76 100644
--- a/theme/bootstrap/bootstrap-panel.vars.php
+++ b/theme/bootstrap/bootstrap-panel.vars.php
@@ -27,6 +27,10 @@ function bootstrap_preprocess_bootstrap_panel(&$variables) {
$variables['collapsible'] = FALSE;
$variables['collapsed'] = FALSE;
}
if (!isset($element['#id']) && $variables['collapsible']) {
Hi Dan, I'm getting an error when trying to run the patch:
patch -p1 < bootstrappatch.patch
patching file bootstrap_subtheme/less/overrides.less
patch: **** malformed patch at line 6: &.js {
I assume that since I copied and pasted into a patch file that it isn't in the right format. I'm not too familiar with patching files so is there a way to automatically format it correctly or could you share a working patch file? Thanks much.
Current version of drupal bootstrap theme (7.x-3.0) has broken collapsible field sets in webform. Newer version of bootstrap (7.x-3.1) fixes this but also breaks side menu in boundless. Applying patch file fixes the issue: 1) Save patch file (inline below) to the /sites/.../themes/bootstrap folder as filename.patch 2) At command prompt cd to the /sites/.../themes/bootstrap folder 2) At command prompt type: patch -p1 < filename.patch 3) Clear cache, refresh page
Patch file below this line: diff --git a/bootstrap_subtheme/less/overrides.less b/bootstrap_subtheme/less/overrides.less index c12e778..fa2d051 100644 --- a/bootstrap_subtheme/less/overrides.less +++ b/bootstrap_subtheme/less/overrides.less @@ -20,7 +20,9 @@ html { &.js { // Collapsible fieldsets. fieldset.collapsed {
Hi Dan, I'm getting an error when trying to run the patch:
I assume that since I copied and pasted into a patch file that it isn't in the right format. I'm not too familiar with patching files so is there a way to automatically format it correctly or could you share a working patch file? Thanks much.
-Ian