Skip to content
Snippets Groups Projects
Commit ec04fae7 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-6944: fix displaying hidden label in project search

parent 3586720e
No related branches found
No related tags found
1 merge request!240ISTWCMS-6944: add code for search label to services search block
...@@ -89,7 +89,10 @@ class UwCblProjectSearch extends BlockBase implements ContainerFactoryPluginInte ...@@ -89,7 +89,10 @@ class UwCblProjectSearch extends BlockBase implements ContainerFactoryPluginInte
// If there is no block title, then set the label so that // If there is no block title, then set the label so that
// the template will know to place a visually hidden one. // 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'); $project_search['label'] = $this->t('Project search');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment