Closed
Description
Preconditions
- Magento: 2.1.4 to 2.1.6, maybe earlier versions are affected too.
Steps to reproduce
- Create a custom Product attribute via Setup of a Custom Module:
[
'required' => 0,
'global' => ScopedAttributeInterface::SCOPE_GLOBAL,
'group' => 'Test',
'searchable' => 0,
'comparable' => 0,
'used_for_sort_by' => 0,
'used_in_product_listing' => 0,
'visible_in_advanced_search' => 0,
'user_defined' => 1,
'is_html_allowed_on_front' => 1,
'visible_on_front' => 1,
'input' => 'select',
'source' => 'Test\Test\Model\Attribute\Source\Discount',
'backend_type' => 'varchar',
'label' => 'Discount',
'position' => 1,
]
- Go to the Backend Stores > Attributes > Product
- Click on the newly created attribute and save it (with or without modifications).
Expected result
- The backend_type doesn't change for the custom attribute.
Actual result
- The backend_type got changed from varchar to int
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release