From 0f3f0b4f9d78390c3bd1a58ff18f87dd83aa4e17 Mon Sep 17 00:00:00 2001 From: Tam Date: Thu, 25 Jan 2018 20:10:48 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20#70=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 9 +++++---- src/services/MapService.php | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2882f14..80a864c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ -## 3.2.0 - WIP +## 3.2.0 - 2018-01-25 ### Fixed -- Not #70 yet +- Fixed bug where pagination would error when querying via a map field. #70 ### Improved - Updated CraftQL support (via @markhuot) -- Updated Mapbox example to use latest API -- Improved address and lat/lng input sizing on smaller screens and in a HUD +- Removed webonyx/graphql-php dependency #71 +- Improved address and lat/lng input sizing on smaller screens and in a HUD #73 +- Updated Mapbox example to use latest API #74 ## 3.1.3 - 2017-12-18 ### Fixed diff --git a/src/services/MapService.php b/src/services/MapService.php index c543167..db923f4 100644 --- a/src/services/MapService.php +++ b/src/services/MapService.php @@ -287,7 +287,8 @@ public function modifyElementsQuery (ElementQueryInterface $query, $value) $this->_replaceOrderBy($query); } - if (isset($oldOrderBy)) + if (array_key_exists('oldOrderBy', get_defined_vars())) + /** @noinspection PhpUndefinedVariableInspection */ $query->orderBy = $oldOrderBy; return;