Skip to content

Commit

Permalink
Merge pull request #1938 in NEXT/platform from next-2529-country-stat…
Browse files Browse the repository at this point in the history
…es-for-addresses to master

* commit '8b50b8200f7e0838576f916c70f671ed29bf2350':
  NEXT-2529 - get states for addresses
  • Loading branch information
janbuecker committed Apr 8, 2019
2 parents 23932fe + 5847cd9 commit 6b014ec
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 6b014ec

Please sign in to comment.