diff --git a/src/Field/Image.php b/src/Field/Image.php index 11fdfa4..f281e3a 100644 --- a/src/Field/Image.php +++ b/src/Field/Image.php @@ -60,7 +60,8 @@ public function process($field) { $attachmentId = $this->fetchValue($field); - $attachment = $this->post->find(intval($attachmentId)); + $attachment = $this->post->attachment()->find(intval($attachmentId)); + $this->fillFields($attachment); $imageData = $this->fetchMetadataValue($attachment);