mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 15:05:54 +00:00
FIX: Replace link field
This commit is contained in:
parent
e6d25af7b3
commit
5b5bfab606
@ -71,7 +71,7 @@ class ElementImageWidget extends DataExtension
|
||||
|
||||
$fields->insertBefore(
|
||||
'Image',
|
||||
LinkField::create('ImageLinkID', 'Link', $this->owner)
|
||||
LinkField::create('ImageLink', 'Link', $this->owner)
|
||||
);
|
||||
|
||||
$this->owner->ImageHeight = $this->getHeight();
|
||||
|
@ -90,14 +90,16 @@ class MapPin extends DataObject
|
||||
|
||||
$fields->replaceField(
|
||||
'PhoneNumberID',
|
||||
LinkField::create('PhoneNumberID', 'Phone Number', $this)
|
||||
->setAllowedTypes(['Phone'])
|
||||
LinkField::create('PhoneNumber', 'Phone Number', $this, [
|
||||
'types' => ['Phone']
|
||||
])
|
||||
);
|
||||
|
||||
$fields->replaceField(
|
||||
'FaxID',
|
||||
LinkField::create('FaxID', 'FAX', $this)
|
||||
->setAllowedTypes(['Phone'])
|
||||
'Fax',
|
||||
LinkField::create('Fax', 'FAX', $this, [
|
||||
'types' => ['Phone']
|
||||
])
|
||||
);
|
||||
$fields->removeByName(['Map', 'LatLngOverride', 'Lng','Lat']);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user