Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Virtual Categories Root select : default/root category not pre-selected anymore #1369

Closed
rbayet opened this issue Mar 28, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@rbayet
Copy link
Collaborator

rbayet commented Mar 28, 2019

In M2 2.2.8 and 2.3.1, when creating a new virtual category, the "Virtual Category Root" select does not pre-select anymore the store default/root category.
In 2.2.8, the select displays/has pre-selected a "Select..." option.
In 2.3.1, the select displays/has pre-selected a "Entity with ID: 0 doesn't exist" option.

Preconditions

Magento Version : 2.2.8 and 2.3.1 (CE and EE)

ElasticSuite Version : 2.6.8 / 2.6.x-dev and 2.7.6 / 2.7x-dev

Environment : Developer and Production mode

Third party modules : N/A

Steps to reproduce

  1. In admin, create a new sub-category under an existing category, save it
  2. In "Products in Category", switch "Virtual Category" to "Yes"

Expected result

  1. The "Virtual Category Root" select which appears should have pre-selected the current store default/root category option
    virtual_category_root_expected

Actual result

  1. In 2.2.8, a "select" option is pre-selected instead, the actual default/root category option being below
    virtual_category_root_select

  2. In 2.3.1, a "Entity with ID: 0 doesn't exist" option is pre-selected, the actual default/root category option being below
    virtual_category_root_entity_does_not_exist

@rbayet
Copy link
Collaborator Author

rbayet commented Apr 25, 2019

I cannot find the related issue on magento2 tracker so I cannot say it's written in stone and true for every category attribute, but it seems now that upon the category creation, the category attribute virtual_category_root is written to the DB with its configured defaut value (0), which is ignored by the DataProvider plugin.

rbayet added a commit to rbayet/elasticsuite that referenced this issue Apr 25, 2019
rbayet added a commit to rbayet/elasticsuite that referenced this issue Apr 25, 2019
rbayet added a commit to rbayet/elasticsuite that referenced this issue Apr 25, 2019
rbayet added a commit to rbayet/elasticsuite that referenced this issue Apr 25, 2019
romainruaud added a commit that referenced this issue Apr 25, 2019
…efault-value

Fixes #1369 virtual_category_root new default value 2.3.x
romainruaud added a commit that referenced this issue Apr 25, 2019
…efault-value-2.2.x

Fixes #1369 virtual_category_root new default value 2.2.x
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants