Skip to content

Commit e448bd4

Browse files
committed
ACP2E-1854: Attribute that is not searchable but used in Search Results works incorrectly
- addressed static issues
1 parent ee0fc86 commit e448bd4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/LayeredNavigation/Plugin/Save/AdjustAttributeSearchable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class AdjustAttributeSearchable
2121
*/
2222
public function afterConvertPresentationDataToInputType(Presentation $subject, array $result): array
2323
{
24-
if (
25-
isset($result['is_filterable_in_search']) &&
24+
if (isset($result['is_filterable_in_search']) &&
2625
$result['is_filterable_in_search'] == '1' &&
2726
$result['is_searchable'] == '0'
2827
) {

app/code/Magento/LayeredNavigation/etc/adminhtml/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* See COPYING.txt for license details.
66
*/
77
-->
8-
<config>
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
99
<type name="Magento\Catalog\Model\Product\Attribute\Frontend\Inputtype\Presentation">
1010
<plugin name="adjust_searchable_attribute_values" type="Magento\LayeredNavigation\Plugin\Save\AdjustAttributeSearchable" sortOrder="1" disabled="false" />
1111
</type>

0 commit comments

Comments
 (0)