From ec04fae79c33e18a71bb48bed3fed750b165ac7f Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Tue, 16 Jul 2024 10:07:35 -0400 Subject: [PATCH] ISTWCMS-6944: fix displaying hidden label in project search --- src/Plugin/Block/UwCblProjectSearch.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Plugin/Block/UwCblProjectSearch.php b/src/Plugin/Block/UwCblProjectSearch.php index 5baf2e62..fc1683d0 100644 --- a/src/Plugin/Block/UwCblProjectSearch.php +++ b/src/Plugin/Block/UwCblProjectSearch.php @@ -89,7 +89,10 @@ class UwCblProjectSearch extends BlockBase implements ContainerFactoryPluginInte // If there is no block title, then set the label so that // the template will know to place a visually hidden one. - if (!$this->configuration['label_display']) { + if ( + !$this->configuration['label_display'] && + $this->configuration['search_option'] !== 'all' + ) { $project_search['label'] = $this->t('Project search'); } -- GitLab