diff --git a/src/Extensions/ElementImageWidget.php b/src/Extensions/ElementImageWidget.php index ce03918..7b8576a 100755 --- a/src/Extensions/ElementImageWidget.php +++ b/src/Extensions/ElementImageWidget.php @@ -71,7 +71,7 @@ class ElementImageWidget extends DataExtension $fields->insertBefore( 'Image', - LinkField::create('ImageLinkID', 'Link') + LinkField::create('ImageLinkID', 'Link', $this->owner) ); $this->owner->ImageHeight = $this->getHeight(); diff --git a/src/Models/MapPin.php b/src/Models/MapPin.php index d76ba20..fb29fb1 100755 --- a/src/Models/MapPin.php +++ b/src/Models/MapPin.php @@ -90,13 +90,13 @@ class MapPin extends DataObject $fields->replaceField( 'PhoneNumberID', - LinkField::create('PhoneNumberID', 'Phone Number') + LinkField::create('PhoneNumberID', 'Phone Number', $this) ->setAllowedTypes(['Phone']) ); $fields->replaceField( 'FaxID', - LinkField::create('FaxID', 'FAX') + LinkField::create('FaxID', 'FAX', $this) ->setAllowedTypes(['Phone']) ); $fields->removeByName(['Map', 'LatLngOverride', 'Lng','Lat']);