Skip to content

Commit

Permalink
Merge pull request #94 from taylordaughtry/v2
Browse files Browse the repository at this point in the history
Fix #92
  • Loading branch information
Tam authored Mar 2, 2018
2 parents a03001b + 67673a3 commit b2b57b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
README.md export-ignore
releases.json export-ignore
/resources export-ignore
.gitignore export-ignore
.gitattributes export-ignore
4 changes: 2 additions & 2 deletions simplemap/services/SimpleMapService.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ public function validateField (SimpleMap_MapFieldType $fieldType)
{
$owner = $fieldType->element;
$field = $fieldType->model;
$content = $fieldType->element->getContent();
$content = $fieldType->element;

$handle = $field->handle;
$data = $content->getAttribute($handle);
$data = $content[$field->handle]->getAttributes();

if (
!array_key_exists('lat', $data)
Expand Down

0 comments on commit b2b57b8

Please sign in to comment.