Skip to content

Commit

Permalink
Update the hasExtension check on Addressable class
Browse files Browse the repository at this point in the history
Could not find `'Addressable'` because the class is now namespaced. Changed to `Addressable::class`
  • Loading branch information
TheBnl authored and stephenmcm committed Sep 3, 2018
1 parent 0c31d56 commit 89d48a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geocodable.php
Expand Up @@ -108,7 +108,7 @@ public function updateCMSFields(FieldList $fields)
$compositeField->push(ReadonlyField::create('Lat_Readonly', 'Lat', $record->Lat));
$compositeField->push(ReadonlyField::create('Lng_Readonly', 'Lng', $record->Lng));
}
if ($record->hasExtension('Addressable')) {
if ($record->hasExtension(Addressable::class)) {
// If using addressable, put the fields with it
$fields->addFieldToTab('Root.Address', ToggleCompositeField::create('Coordinates', 'Coordinates', $compositeField));
} elseif ($record instanceof SiteTree) {
Expand Down

0 comments on commit 89d48a3

Please sign in to comment.