Skip to content

Commit

Permalink
Merge branch 'release/0.1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrossi committed Jan 26, 2017
2 parents 8c0b89c + 653236c commit e8691ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Field/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e8691ca

Please sign in to comment.