Skip to content

Commit

Permalink
Fixed bug where maps were failing to save
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Nov 30, 2017
1 parent 77f1e75 commit e3cbea8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.1 - 2017-11-30
### Fixed
- Fixed bug where maps were failing to save.

## 3.1.0 - 2017-11-30
### Added
- [CraftQL](https://github.com/markhuot/craftql) support!
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ether/simplemap",
"description": "A beautifully simple Google Map field type.",
"version": "3.1.0",
"version": "3.1.1",
"type": "craft-plugin",
"license": "MIT",
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion src/services/MapService.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private function _calculateDistance (Map $map)
*/
private function _padParts (Map $model)
{
$parts = $model->parts;
$parts = $model->parts ?: [];

foreach (self::$parts as $part) {
if (!array_key_exists($part, $parts)) {
Expand Down

0 comments on commit e3cbea8

Please sign in to comment.