Skip to content

Commit 44a1d12

Browse files
author
Yuri Kovsher
committed
Merge remote-tracking branch 'tango-ce/MAGETWO-49194' into MAGETWO-48913
2 parents 2a61f49 + 1f1ccbf commit 44a1d12

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier

1 file changed

+10
-0
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ class Eav extends AbstractModifier
133133
*/
134134
private $translitFilter;
135135

136+
/**
137+
* @var array
138+
*/
139+
private $bannedInputTypes = ['media_image'];
140+
136141
/**
137142
* Initialize dependencies
138143
*
@@ -218,7 +223,12 @@ public function modifyMeta(array $meta)
218223
protected function getAttributesMeta(array $attributes, $groupCode)
219224
{
220225
$meta = [];
226+
221227
foreach ($attributes as $sortKey => $attribute) {
228+
if (in_array($attribute->getFrontendInput(), $this->bannedInputTypes)) {
229+
continue;
230+
}
231+
222232
$code = $attribute->getAttributeCode();
223233
$canDisplayService = $this->canDisplayUseDefault($attribute);
224234
$usedDefault = $this->usedDefault($attribute);

0 commit comments

Comments
 (0)