From 9f2f86231523b3274b02ca50fa72a7cd8ef842fc Mon Sep 17 00:00:00 2001 From: Luke Fromhold Date: Fri, 17 May 2024 08:58:01 +1000 Subject: [PATCH] FIX missing ref --- src/Forms/EmbedField.php | 1 + 1 file changed, 1 insertion(+) 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://');