You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you change option label in the filter attribute in the admin panel, filter navigation on the frontend disappears.
Preconditions
Magento Version : 2.1.10 CE
ElasticSuite Version : 2.3.0, but does not matter
Environment : does not matter
Third party modules : does not matter
Steps to reproduce
edit attribute in the admin panel
change label in some option
save changes
Expected result
Filters should be still visible on the frontend.
Actual result
Filter nav (the whole block) on the frontend disappears.
We found in logs:
main.CRITICAL: Notice: Undefined index: adminSortIndex in /*/vendor/smile/elasticsuite/src/module-elasticsuite-catalog/Model/Layer/Filter/Attribute.php on line 277 [] []
The problem is that script doesn't set key adminSortIndex to all items in array $items and a few lines below the script tries to sort these array using this key.
Possible solution
In class Smile\ElasticsuiteCatalog\Model\Layer\Filter\Attribute, method addOptionsData(),
change this:
When you change option label in the filter attribute in the admin panel, filter navigation on the frontend disappears.
Preconditions
Magento Version : 2.1.10 CE
ElasticSuite Version : 2.3.0, but does not matter
Environment : does not matter
Third party modules : does not matter
Steps to reproduce
Expected result
Actual result
Filter nav (the whole block) on the frontend disappears.
We found in logs:
The problem is that script doesn't set key adminSortIndex to all items in array $items and a few lines below the script tries to sort these array using this key.
Possible solution
In class Smile\ElasticsuiteCatalog\Model\Layer\Filter\Attribute, method addOptionsData(),
change this:
to this:
The text was updated successfully, but these errors were encountered: