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')); } }