Skip to content
Snippets Groups Projects
Commit 23cce581 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-5032-ebremner-catalogs' into '1.0.x'

Feature/istwcms 5032 ebremner catalogs

See merge request !149
parents 0b978d3a be0d4b44
No related branches found
No related tags found
1 merge request!149Feature/istwcms 5032 ebremner catalogs
langcode: en
status: true
dependencies: { }
id: uw_lbb_catalog_search
block_id: uw_cbl_catalog_search
category: uw_bc_searches
label: 'Catalog search'
weight: -1
image_path: images/layout_builder_browser/catalogsearch.svg
image_path_base: 'theme:uw_fdsu_theme_resp'
image_alt: 'Catalog search'
...@@ -417,7 +417,11 @@ class UWService implements UWServiceInterface { ...@@ -417,7 +417,11 @@ class UWService implements UWServiceInterface {
if (!empty($tabs)) { if (!empty($tabs)) {
foreach ($data as $key => $field) { foreach ($data as $key => $field) {
if (in_array($key, $tabs)) { if (in_array($key, $tabs)) {
$tags[$key] = $this->uwGetTermsFromEntityField($node->$field, 'tags'); $tags_to_add = $this->uwGetTermsFromEntityField($node->$field, 'tags');
if (!empty($tags_to_add)) {
$tags[$key] = $this->uwGetTermsFromEntityField($node->$field, 'tags');
}
} }
} }
} }
...@@ -428,6 +432,7 @@ class UWService implements UWServiceInterface { ...@@ -428,6 +432,7 @@ class UWService implements UWServiceInterface {
case 'tags': case 'tags':
$tags = []; $tags = [];
foreach ($data as $field) { foreach ($data as $field) {
$tags_to_add = $this->uwGetTermsFromEntityField($node->$field, 'tags');
$tags = array_merge($tags, $this->uwGetTermsFromEntityField($node->$field, 'tags')); $tags = array_merge($tags, $this->uwGetTermsFromEntityField($node->$field, 'tags'));
} }
$node_data[$index] = [$tags]; $node_data[$index] = [$tags];
......
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