Skip to content

Commit 4b7bffa

Browse files
committed
MC-38613: Support by Magento CatalogGraphQl
1 parent f6c7392 commit 4b7bffa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Eav/Model/AttributeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function save(\Magento\Eav\Api\Data\AttributeInterface $attribute)
8888
try {
8989
$this->eavResource->save($attribute);
9090
} catch (\Exception $e) {
91-
throw new StateException(__("The attribute can't be saved."));
91+
throw new StateException(__("The attribute can't be saved."), $e);
9292
}
9393
return $attribute;
9494
}

app/code/Magento/Swatches/Helper/Media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ protected function getUniqueFileName($file)
197197
$file
198198
);
199199
} else {
200-
$destFile = dirname($file) . '/' . \Magento\MediaStorage\Model\File\Uploader::getNewFileName(
200+
$destFile = rtrim(dirname($file), '/.') . '/' . \Magento\MediaStorage\Model\File\Uploader::getNewFileName(
201201
$this->getOriginalFilePath($file)
202202
);
203203
}

0 commit comments

Comments
 (0)