Skip to content

Store view // product attribute / "Use default value" not working #26694

@mwieschke

Description

@mwieschke

Preconditions (*)

  1. Magento 2.3.3 installed from zip file. Updated using composer update
  2. Multiple store mode
  3. Multiple stores created
  4. Multiple store views for one store

Steps to reproduce (*)

  1. create product on website level with name "test"
  2. edit product attribute on store view level (attribute: name with value "test store view")
  3. set checkbox "Use Default Value" for attribute name on store view level and save
  4. after page reload name has value "test store view", checkbox is unchecked

Expected result (*)

  1. Attribute value in StoreView reset to value of website level -> "test"
  2. Checkbox "Use default value" is checked
  3. Database entry in table "catalog_product_entity_varchar" deleted for this store view

Actual result (*)

  1. Attribute value in StoreView is still the same
  2. Checkbox "Use default value" is not checked
  3. Database entry in table "catalog_product_entity_varchar" still exists for this store view

It seems to be a javascript issue regarding the toggle event ticking the checkbox.

Tracked this down to file:
vendor/magento/module-catalog/Controller/Adminhtml/Product/Initialization/Helper.php:204
The POST var $useDefaults = (array)$this->request->getPost('use_default', []); is empty.

Same function edition categories on store view level works without any problems.

Metadata

Metadata

Labels

Issue: Format is validGate 1 Passed. Automatic verification of issue format passedReported on 2.3.3Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions