diff --git a/src/Forms/EmbedField.php b/src/Forms/EmbedField.php index d78b0f4..771a5d3 100644 --- a/src/Forms/EmbedField.php +++ b/src/Forms/EmbedField.php @@ -37,6 +37,7 @@ function setEmbedType($type = false): self public function getSourceURLField(): TextField { + $sourceURL = $this->sourceURL ?? $this->object->SourceURL; $sourceURLField = TextField::create($this->getName() . '[sourceurl]', '', $sourceURL); $sourceURLField->setAttribute('data-update-url', $this->Link('update')); $sourceURLField->setAttribute('placeholder', 'https://');