Skip to content

adi3009/attribute_repository_save

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Magento product attribute repository save bug

Magento version 2.1.7 CE and EE

Demonstrating that source model is reset in save method of repository for new attribute.

Link to buggy code

How to replicate

  • Copy Example/Catalog module into app/code directory.

  • Install module

    ./bin/magento module:enable "Example_Catalog"
    ./bin/magento setup:upgrade
    ./bin/magento setup:di:compile
    
  • Run command to create an example product attribute

    ./bin/magento example:catalog:create_attribute
    
  • In magento admin panel you should see attribute example_attribute_code of input type select having just an empty option.

  • Run the command again and you should see the attribute has options from source model.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages