Skip to content

Commit

Permalink
Fix incompatibility with the get_image twig function from sulu/web-tw…
Browse files Browse the repository at this point in the history
…ig package (#671)
  • Loading branch information
dev-newvisibility authored Jun 7, 2024
1 parent 088a7b7 commit c47fc34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Document/MediaViewObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ class MediaViewObject
*/
protected $formats = '{}';

/**
* @var string|null
*
* @Property(type="keyword")
*/
public $mimeType;

/**
* @var string
*
Expand All @@ -67,6 +74,7 @@ public function setData(Media $media)
$this->id = $media->getId();
$this->title = $media->getTitle();
$this->setFormats($media->getFormats());
$this->mimeType = $media->getMimeType();
$this->url = $media->getUrl();
$this->copyright = $media->getCopyright();

Expand Down

1 comment on commit c47fc34

@hual7
Copy link

@hual7 hual7 commented on c47fc34 Jun 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-schranz please add the information when upgrading to 2.6, to reindex all articles with bin/adminconsole sulu:article:reindex --drop --no-interaction and bin/websiteconsole sulu:article:reindex --drop --no-interaction.
I got an error after upgrading ... reindexing fixed it

Bildschirmfoto 2024-06-11 um 00 22 28

THX

Please sign in to comment.