Skip to content

Commit

Permalink
Enable recieveing the payload by code
Browse files Browse the repository at this point in the history
So the string can be used as a value in the CV
  • Loading branch information
IvanJelicSF authored Oct 18, 2024
1 parent c64e2e8 commit c55ed45
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'])) {
Expand Down

0 comments on commit c55ed45

Please sign in to comment.