Skip to content

Commit

Permalink
Update CountriesViewHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fgerards authored Jan 20, 2023
1 parent cbca097 commit 95727b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Classes/ViewHelpers/CountriesViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ public function render(): array
break;
case 3:
/** @var TerritoryRepository $territoryRepository */
$territoryRepository = ObjectUtility::getObjectManager()->get(
TerritoryRepository::class
);
$territoryRepository = GeneralUtility::makeInstance(TerritoryRepository::class);
$territories = $territoryRepository
->findAllByUidInList($field->getTerritories())->toArray();
$countries = $this->findByTerritories($territories);
Expand Down

0 comments on commit 95727b5

Please sign in to comment.