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;