diff --git a/Classes/Domain/Repository/CompanyRepository.php b/Classes/Domain/Repository/CompanyRepository.php index 91d50107474a408732ccc62c3e27d74f8e1966f9..0d5b8fc90e63bf6b42432513518ce01ebbd34f41 100644 --- a/Classes/Domain/Repository/CompanyRepository.php +++ b/Classes/Domain/Repository/CompanyRepository.php @@ -58,12 +58,12 @@ class CompanyRepository extends Repository { $countryName = $company->getCountry(); if ($countryName !== '') { // The filtering needs this specific key for some reason. - $countryArray[$countryName] = $company->getUid(); + $countryArray[$countryName] = $countryName; } } ksort($countryArray); - return array_flip($countryArray); + return $countryArray; } /**