Skip to content

Attribute with "Catalog Input Type for Store Owner" equal "Fixed Product Tax" for Multi-store #12393

@klakovsky

Description

@klakovsky

Attribute with "Catalog Input Type for Store Owner" equal "Fixed Product Tax" did not work correctly for multi-stores.

Preconditions

  1. CE 2.1.9 or CE 2.2.1 or CE 2.3-develop
  2. PHP v7.0.22

Steps to reproduce

  1. Create two websites website1 (website_id = 1), website2 (website_id =2)
  2. Create new product SKU=product1 with default attribute set and check for "Product in Websites" only website2.
  3. Create new product attribute "attribute1" with "Catalog Input Type for Store Owner" equal "Fixed Product Tax".
  4. Assign attribute1 to default attribute set.
  5. Open product "product1" and find attribute1 and click the button "add" near "attribute1".

Expected result

  1. The new line with website column.

Actual result

  1. The new line without website column.
    image

  2. Browser console error:

Uncaught TypeError: data.some is not a function
at findFirst (select.js:67)
at UiClass.clear (select.js:285)
at UiClass.setInitialValue (select.js:299)
at UiClass.setInitialValue (wrapper.js:109)
at UiClass.initialize (abstract.js:70)
at UiClass.initialize (wrapper.js:109)
at UiClass._super (wrapper.js:106)
at UiClass.initialize (select.js:119)
at UiClass.initialize (wrapper.js:109)
at new UiClass (class.js:49)

Comments

The method
\Magento\Weee\Ui\DataProvider\Product\Form\Modifier\Manager\Website::getWebsites()
should return the array without keys like \Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Websites::getWebsitesList()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions