diff --git a/src/SWP/Bundle/CoreBundle/EventListener/UpdateContentListItemsListener.php b/src/SWP/Bundle/CoreBundle/EventListener/UpdateContentListItemsListener.php index 75198bc81..c551b073f 100644 --- a/src/SWP/Bundle/CoreBundle/EventListener/UpdateContentListItemsListener.php +++ b/src/SWP/Bundle/CoreBundle/EventListener/UpdateContentListItemsListener.php @@ -80,6 +80,13 @@ public function onListCriteriaChange(GenericEvent $event): void ) { $this->contentListItemsRemover->removeContentListItems($contentList); $filters = $this->determineLimit($contentList, $contentListFilters); + $metadata = $filters['metadata'] ?? []; + $subject = $metadata['subject'] ?? []; + foreach ($subject as $key => $item) { + if (isset($item['scheme']) && $item['scheme'] == 'urgency') { + $filters['metadata']['subject'][$key]['code'] = (string)$item['code']; + } + } $criteria = new Criteria($filters); $criteria->set('status', ArticleInterface::STATUS_PUBLISHED); if (isset($filters['route'])) {