diff --git a/src/Plugin/Block/UwCblProjectSearch.php b/src/Plugin/Block/UwCblProjectSearch.php index 5baf2e62ffd08c07a6ced0cadeb8e8093f73c00d..fc1683d0b4d8130221e786b26241d32e3d5ac938 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'); }