Skip to content

Commit

Permalink
Merge branch 'release/4.0.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Aug 7, 2024
2 parents f8b75cd + b152838 commit d1c8522
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Easy Address Field for Craft CMS

## 4.0.10 - 2024-08-07
### Fixed
- Fields now respect wether geocoding is enabled or not ([#38](https://github.com/studioespresso/craft-easyaddressfield/issues/38))

## 4.0.9 - 2024-07-22
### Fixed
- Better error catching on Nomanatim errors ([#37](https://github.com/studioespresso/craft-easyaddressfield/issues/37))
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "studioespresso/craft-easyaddressfield",
"description": "The only address field you need",
"type": "craft-plugin",
"version": "4.0.9",
"version": "4.0.10",
"keywords": [
"cms",
"craftcms",
Expand Down
3 changes: 1 addition & 2 deletions src/services/FieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function saveField(EasyAddressFieldField $field, ElementInterface $elemen
$record->site = $element->siteId;
$record->field = $field->id;
}

if(!ElementHelper::isDraftOrRevision($element)) {
if(!ElementHelper::isDraftOrRevision($element) && $field->geoCode) {
$value = EasyAddressField::$plugin->geoLocation()->locate($value);
}

Expand Down

0 comments on commit d1c8522

Please sign in to comment.