Skip to content

Commit

Permalink
Do not save assets in tree list calls - resolves #7520
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch committed Apr 12, 2021
1 parent 20f5ba7 commit 76e67a3
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -713,11 +713,6 @@ protected function getTreeNodeConfig($element)
$tmpAsset['thumbnail'] = $this->getThumbnailUrl($asset);
$tmpAsset['thumbnailHdpi'] = $this->getThumbnailUrl($asset, true);

// this is for backward-compatibility, to calculate the dimensions if they are not there
if (!$asset->getCustomSetting('imageDimensionsCalculated')) {
$asset->save();
}

// we need the dimensions for the wysiwyg editors, so that they can resize the image immediately
if ($asset->getCustomSetting('imageWidth') && $asset->getCustomSetting('imageHeight')) {
$tmpAsset['imageWidth'] = $asset->getCustomSetting('imageWidth');
Expand Down

0 comments on commit 76e67a3

Please sign in to comment.