Skip to content

Commit

Permalink
NEXT-2529 - get states for addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
uehler committed Apr 5, 2019
1 parent ba23e4d commit 5847cd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Checkout/Customer/Storefront/AddressService.php
Expand Up @@ -76,7 +76,8 @@ public function getById(string $addressId, SalesChannelContext $context): Custom
public function getCountryList(SalesChannelContext $context): CountryCollection
{
$criteria = new Criteria([]);
$criteria->addFilter(new EqualsFilter('country.active', true));
$criteria->addFilter(new EqualsFilter('country.active', true))
->addAssociation('country.states');

/** @var CountryCollection $countries */
$countries = $this->countryRepository->search($criteria, $context->getContext())
Expand Down

0 comments on commit 5847cd9

Please sign in to comment.