Skip to content

Commit

Permalink
FIX, SS 3.5 throws an error due to the field being created when it al…
Browse files Browse the repository at this point in the history
…ready exists.
  • Loading branch information
Nathan Glasl committed Jan 18, 2017
1 parent fc379d4 commit 2dbd6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Geocodable.php
Expand Up @@ -42,7 +42,7 @@ public function onBeforeWrite()

public function updateCMSFields(FieldList $fields)
{
$fields->removeByName(array('Lat', 'Lng'));
$fields->removeByName(array('LatLngOverride', 'Lat', 'Lng'));

// Adds Lat/Lng fields for viewing in the CMS
$compositeField = CompositeField::create();
Expand Down

0 comments on commit 2dbd6f7

Please sign in to comment.