-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selected filter with a special html character can't be removed #1978
Comments
It's logically no longer necessary to escape the label for the layer state since it's done in the layer/state.phtml template since 2.3.3 (see https://github.com/magento/magento2/blob/2.3.3/app/code/Magento/LayeredNavigation/view/frontend/templates/layer/state.phtml vs https://github.com/magento/magento2/blob/2.3.2/app/code/Magento/LayeredNavigation/view/frontend/templates/layer/state.phtml). But our 2.8.x releases cover up to 2.3.4, so I'll probably fix this in two different ways. |
…rs_prevent_removal Fixes #1978 Remove extra escaping preventing filter removal
current filter item value and applied values.
…rs_prevent_removal_2_8_x Fixes #1978 Do not rely on escaped value to compare
Preconditions
Magento Version : CE
ElasticSuite Version : 2.9.3
Environment : Developer / Production
Steps to reproduce
Expected result
Actual result
Cause
When comparing the arrays (
elasticsuite/src/module-elasticsuite-catalog/Model/Layer/Filter/Item/Attribute.php
Line 50 in c8e6cbb
.. special characters in $this->getLabel() are converted to html entities. In the function $this->getApplyValue() the special characters are not converted. So comparing them doesn't work.. And so it doesn't give the right "remove url".
The text was updated successfully, but these errors were encountered: