Skip to content

Commit

Permalink
(v4.0.8.1) Patch for alias conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseydiloreto committed May 10, 2021
1 parent 87a7cae commit 04dc0ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 37 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 4.0.8.1 - 2021-05-10

### Fixed
- Reverted field alias, to be reinstated with upcoming Craft release.

## 4.0.8 - 2021-05-08

### Changed
Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "doublesecretagency/craft-googlemaps",
"description": "Maps in minutes. Powered by the Google Maps API.",
"type": "craft-plugin",
"version": "4.0.8",
"version": "4.0.8.1",
"keywords": [
"craft",
"cms",
Expand Down Expand Up @@ -35,8 +35,7 @@
},
"autoload": {
"psr-4": {
"doublesecretagency\\googlemaps\\": "src/",
"doublesecretagency\\smartmap\\": "legacy/"
"doublesecretagency\\googlemaps\\": "src/"
}
},
"extra": {
Expand Down
11 changes: 0 additions & 11 deletions legacy/fields/Address.php

This file was deleted.

23 changes: 0 additions & 23 deletions src/fields/AddressField.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,26 +147,6 @@ class AddressField extends Field implements PreviewableFieldInterface

// ========================================================================= //

/**
* LEGACY: Properties required for Smart Map migration
*/
public $dragPinDefault;
public $dragPinLatitude;
public $dragPinLongitude;
public $dragPinZoom;
public $layout = [
'street1' => ['enable' => 1, 'width' => 100, 'position' => 1],
'street2' => ['enable' => 1, 'width' => 100, 'position' => 2],
'city' => ['enable' => 1, 'width' => 50, 'position' => 3],
'state' => ['enable' => 1, 'width' => 15, 'position' => 4],
'zip' => ['enable' => 1, 'width' => 35, 'position' => 5],
'country' => ['enable' => 1, 'width' => 100, 'position' => 6],
'lat' => ['enable' => 1, 'width' => 50, 'position' => 7],
'lng' => ['enable' => 1, 'width' => 50, 'position' => 8],
];

// ========================================================================= //

/**
* @inheritdoc
*/
Expand Down Expand Up @@ -423,6 +403,3 @@ public function modifyElementsQuery(ElementQueryInterface $query, $options = [])
// }

}

// Aliased from old field class
class_alias(AddressField::class, \doublesecretagency\smartmap\fields\Address::class);

0 comments on commit 04dc0ae

Please sign in to comment.