Skip to content

Commit

Permalink
see cl 1.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed May 20, 2020
1 parent 524ca22 commit f475d55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.19.1] - 2020-05-20
- fixed `RelatedConfigElementType`

## [1.19.0] - 2020-05-19
- added new list config elements: `RelatedConfigElementType`, `TagsConfigElementType`

Expand Down
7 changes: 7 additions & 0 deletions src/ConfigElementType/RelatedConfigElementType.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,17 @@ protected function renderRelated(Model $configElement, ItemInterface $item): ?st

$this->applyTagsFilter($configElement, $item);

// store the module data in order to restore it after the list has been created
$moduleData = $item->getManager()->getModuleData();

$result = Controller::getFrontendModule($configElement->relatedListModule);

unset($GLOBALS['HUH_LIST_RELATED']);

// restore the list config
$item->getManager()->setModuleData($moduleData);
$item->getManager()->getListConfig();

return $result;
}

Expand Down

0 comments on commit f475d55

Please sign in to comment.