Skip to content

Commit

Permalink
Merge branch 'v2-dev' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Nov 30, 2017
2 parents c6fb7ed + 8f50c0d commit d007a31
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ Lat/Lng, to display it on a map.

## Changelog

### 1.8.1
- Fixed bug where maps didn't save

### 1.8.0
- The maps `parts` now contains all available options from [here](https://developers.google.com/maps/documentation/geocoding/intro#Types) (including the `_small` variants). Any options without values are returned as empty strings.
- Added `craft.simpleMap.getLatLngFromAddress($addressString[, $country])`.
Expand Down
8 changes: 8 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,13 @@
"[Added] Added `craft.simpleMap.getLatLngFromAddress($addressString[, $country])`.",
"[Improved] The maps `parts` now contains all available options from [here](https://developers.google.com/maps/documentation/geocoding/intro#Types) (including the `_small` variants). Any options without values are returned as empty strings."
]
},
{
"version": "1.8.1",
"downloadUrl": "https://github.com/ethercreative/simplemap/archive/v1.8.1.zip",
"date": "2017-11-30T18:20:00-08:00",
"notes": [
"[Fixed] Fixed bug where maps didn't save"
]
}
]
2 changes: 1 addition & 1 deletion simplemap/SimpleMapPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getDescription()

public function getVersion()
{
return '1.8.0';
return '1.8.1';
}

public function getSchemaVersion()
Expand Down
2 changes: 1 addition & 1 deletion simplemap/services/SimpleMapService.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private function _calculateDistance (SimpleMap_MapModel $model)

private function _padParts (SimpleMap_MapModel $model)
{
$parts = $model->parts;
$parts = $model->parts ?: [];

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

0 comments on commit d007a31

Please sign in to comment.