Skip to content

Commit

Permalink
see cl 1.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Nov 21, 2019
1 parent 05b7970 commit 1a40143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.9.6] - 2019-11-21

- fixed multifileupload related bug

## [1.9.5] - 2019-11-12

- fixed dc_multilingual related bug
Expand Down
6 changes: 1 addition & 5 deletions src/ConfigElementType/ImageConfigElementType.php
Expand Up @@ -95,7 +95,7 @@ public function addToItemData(ItemInterface $item, ListConfigElementModel $listC
$image = StringUtil::deserialize($image);

if (\is_array($image)) {
$image = $image[0];
$image = array_values($image)[0];
}

if (null === ($imageFile = $filesModel->findByUuid($image))) {
Expand All @@ -105,10 +105,6 @@ public function addToItemData(ItemInterface $item, ListConfigElementModel $listC

$projectDir = System::getContainer()->get('huh.utils.container')->getProjectDir();

if (null !== $imageFile) {
$fileExist = file_exists($projectDir.'/'.$imageFile->path);
}

if (null !== $imageFile && file_exists($projectDir.'/'.$imageFile->path) && getimagesize($projectDir.'/'.$imageFile->path)) {
$imageArray = $item->getRaw();

Expand Down

0 comments on commit 1a40143

Please sign in to comment.