From e1e3051d002d5f50d33858598950635d82611cba Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 3 Jun 2021 10:33:09 +0200 Subject: [PATCH] address: correct customizeQuery --- .../ChillMainBundle/Controller/PostalCodeAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Controller/PostalCodeAPIController.php b/src/Bundle/ChillMainBundle/Controller/PostalCodeAPIController.php index a02765ff7..026784208 100644 --- a/src/Bundle/ChillMainBundle/Controller/PostalCodeAPIController.php +++ b/src/Bundle/ChillMainBundle/Controller/PostalCodeAPIController.php @@ -19,7 +19,7 @@ class PostalCodeAPIController extends ApiController if ($request->query->has('country')) { $qb->where('e.country = :country') - ->setParameter('country', $request->get('country')); + ->setParameter('country', $request->query->get('country')); } }