We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 908a6bb + 0edcd20 commit 489f0b4Copy full SHA for 489f0b4
app/code/Magento/Eav/Model/Entity/Attribute.php
@@ -295,6 +295,12 @@ public function beforeSave()
295
}
296
297
298
+ if ($this->getFrontendInput() == 'media_image') {
299
+ if (!$this->getFrontendModel()) {
300
+ $this->setFrontendModel(\Magento\Catalog\Model\Product\Attribute\Frontend\Image::class);
301
+ }
302
303
+
304
if ($this->getBackendType() == 'gallery') {
305
if (!$this->getBackendModel()) {
306
$this->setBackendModel(\Magento\Eav\Model\Entity\Attribute\Backend\DefaultBackend::class);
0 commit comments