From f78bedc2a69e540e32ce691ffb0992014d9ad9bc Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Tue, 19 Mar 2024 20:41:34 +0100 Subject: [PATCH] Fix multiple search countries --- app/Http/Controllers/ProductsCompareController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProductsCompareController.php b/app/Http/Controllers/ProductsCompareController.php index 2f292fa..ae5ffb0 100644 --- a/app/Http/Controllers/ProductsCompareController.php +++ b/app/Http/Controllers/ProductsCompareController.php @@ -33,7 +33,7 @@ class ProductsCompareController extends Controller if ($countries != null && count($countries)) { $hCountry = CountryCode::countryHash(); $countries = $countries->map(function ($country) use ($hCountry) { - return $hCountry[$country]; + return $hCountry[$country["name"]]; }); } else { $countries = [];