File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
app/code/Magento/Eav/Model/Api/SearchCriteria/CollectionProcessor Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -65,16 +65,18 @@ private function addFilterGroupToCollection(
65
65
) {
66
66
$ fields = [];
67
67
foreach ($ filterGroup ->getFilters () as $ filter ) {
68
- $ isApplied = false ;
69
- $ customFilter = $ this ->getCustomFilterForField ($ filter ->getField ());
70
- if ($ customFilter ) {
71
- $ isApplied = $ customFilter ->apply ($ filter , $ collection );
72
- }
68
+ if ($ filter ->getField () != 'search_term ' ) {
69
+ $ isApplied = false ;
70
+ $ customFilter = $ this ->getCustomFilterForField ($ filter ->getField ());
71
+ if ($ customFilter ) {
72
+ $ isApplied = $ customFilter ->apply ($ filter , $ collection );
73
+ }
73
74
74
- if (!$ isApplied ) {
75
- $ field = $ this ->getFieldMapping ($ filter ->getField ());
76
- $ condition = $ filter ->getConditionType () ? $ filter ->getConditionType () : 'eq ' ;
77
- $ fields [] = ['attribute ' => $ field , $ condition => $ filter ->getValue ()];
75
+ if (!$ isApplied ) {
76
+ $ field = $ this ->getFieldMapping ($ filter ->getField ());
77
+ $ condition = $ filter ->getConditionType () ? $ filter ->getConditionType () : 'eq ' ;
78
+ $ fields [] = ['attribute ' => $ field , $ condition => $ filter ->getValue ()];
79
+ }
78
80
}
79
81
}
80
82
You can’t perform that action at this time.
0 commit comments