-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #645 from yalesites-org/v130
Release v1.3.0
- Loading branch information
Showing
143 changed files
with
3,650 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
patches/selective_better_exposed_filters/selective_better_exposed_filters-3432551.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From 30bf569df2f6b17d5ea64da83bf3372165bfa98a Mon Sep 17 00:00:00 2001 | ||
From: Marc Berger <[email protected]> | ||
Date: Wed, 20 Mar 2024 18:41:32 -0700 | ||
Subject: [PATCH] fix(3432551): If all exposed form elements are set to hide, | ||
also hide the form. | ||
|
||
--- | ||
.../filter/SelectiveFilterBase.php | 16 ++++++++++++++++ | ||
1 file changed, 16 insertions(+) | ||
|
||
diff --git a/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php b/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php | ||
index 9d064a2..c4440b9 100644 | ||
--- a/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php | ||
+++ b/src/Plugin/better_exposed_filters/filter/SelectiveFilterBase.php | ||
@@ -269,6 +269,22 @@ abstract class SelectiveFilterBase { | ||
) | ||
) { | ||
$element['#access'] = FALSE; | ||
+ | ||
+ // Helps with check if all elements are hidden later. | ||
+ $element['#sef_hidden'] = TRUE; | ||
+ | ||
+ // If all exposed form elements are hidden, hide the form. | ||
+ $i = 0; | ||
+ foreach ($form['#info'] as $exposedFilter) { | ||
+ if (isset($form[$exposedFilter['value']]['#sef_hidden']) && $form[$exposedFilter['value']]['#sef_hidden']) { | ||
+ $i++; | ||
+ } | ||
+ } | ||
+ | ||
+ if ($i == count($form['#info'])) { | ||
+ $form['#access'] = FALSE; | ||
+ } | ||
+ | ||
} | ||
} | ||
} | ||
-- | ||
GitLab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
web/profiles/custom/yalesites_profile/config/sync/block_content.type.reference_card.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
uuid: 3ff3d3c3-7213-4dba-85f0-db24528b1a0a | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- entity_redirect | ||
third_party_settings: | ||
entity_redirect: | ||
redirect: | ||
add: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
edit: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
delete: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
anonymous: | ||
active: 0 | ||
destination: default | ||
url: '' | ||
external: '' | ||
id: reference_card | ||
label: 'Reference card' | ||
revision: 0 | ||
description: 'Select an existing Post, Event, or Profile to display a single card.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...tes_profile/config/sync/core.entity_form_display.block_content.reference_card.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
uuid: b383cf75-8b98-4bc8-aa82-fee7ca036f80 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- block_content.type.reference_card | ||
- field.field.block_content.reference_card.field_content_ref | ||
- field.field.block_content.reference_card.field_style_variation | ||
module: | ||
- hide_revision_field | ||
id: block_content.reference_card.default | ||
targetEntityType: block_content | ||
bundle: reference_card | ||
mode: default | ||
content: | ||
field_content_ref: | ||
type: entity_reference_autocomplete | ||
weight: 2 | ||
region: content | ||
settings: | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
field_style_variation: | ||
type: options_select | ||
weight: 3 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
info: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
revision_log: | ||
type: hide_revision_field_log_widget | ||
weight: 1 | ||
region: content | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
show: true | ||
default: '' | ||
permission_based: false | ||
allow_user_settings: true | ||
third_party_settings: { } | ||
hidden: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.