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.
1 parent 0d99fa8 commit e3134eaCopy full SHA for e3134ea
app/code/Magento/Eav/Model/Entity/Attribute.php
@@ -287,6 +287,12 @@ public function beforeSave()
287
}
288
289
290
+ if ($this->getFrontendInput() == 'media_image') {
291
+ if (!$this->getFrontendModel()) {
292
+ $this->setFrontendModel(\Magento\Catalog\Model\Product\Attribute\Frontend\Image::class);
293
+ }
294
295
+
296
if ($this->getBackendType() == 'gallery') {
297
if (!$this->getBackendModel()) {
298
$this->setBackendModel(\Magento\Eav\Model\Entity\Attribute\Backend\DefaultBackend::class);
0 commit comments