Skip to content

Commit 2587d20

Browse files
author
Vadim Zubovich
committed
Revert "MAGNSWTC-17: Add ability to change Input type while saving attribute"
This reverts commit 7e478f6.
1 parent ee1d379 commit 2587d20

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ public function execute()
167167

168168
$data['attribute_code'] = $model->getAttributeCode();
169169
$data['is_user_defined'] = $model->getIsUserDefined();
170-
if (isset($data['frontend_input'])) {
171-
$model->changeFrontendType($data['frontend_input']);
172-
}
173170
$data['frontend_input'] = $model->getFrontendInput();
174171
} else {
175172
/**

app/code/Magento/Eav/Model/Entity/Attribute/AbstractAttribute.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -338,17 +338,6 @@ public function setDefaultValue($defaultValue)
338338
return $this->setData('default_value', $defaultValue);
339339
}
340340

341-
/**
342-
* Change Attribute Fronted input type
343-
*
344-
* @param string $value
345-
* @return $this
346-
*/
347-
public function changeFrontendType($value)
348-
{
349-
return $this;
350-
}
351-
352341
/**
353342
* @return int
354343
*/

0 commit comments

Comments
 (0)