Last active
January 2, 2020 11:14
-
-
Save DanielRiezebos/7386328bd263d6e1fa14bf5d577c30f2 to your computer and use it in GitHub Desktop.
This helps to fix: https://github.com/magento/magento2/issues/25099
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php 2020-01-02 11:51:58.694620443 +0100 | |
+++ b/vendor/magento/module-catalog/Model/Category/Attribute/Backend/Image.php 2020-01-02 12:06:08.734544971 +0100 | |
@@ -125,7 +125,9 @@ | |
} | |
if ($imageName = $this->getUploadedImageName($value)) { | |
- $imageName = $this->checkUniqueImageName($imageName); | |
+ if (array_key_exists('tmp_name', $value[0])) { | |
+ $imageName = $this->checkUniqueImageName($imageName); | |
+ } | |
$object->setData($this->additionalData . $attributeName, $value); | |
$object->setData($attributeName, $imageName); | |
} elseif (!is_string($value)) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment