Skip to content

Commit e881f00

Browse files
committed
ACP2E-464: Remove wildcard and LIKE operator and replace with equal operator in customer grid filter search
1 parent 27bd7c3 commit e881f00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Customer/Model/Indexer/AttributeProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ protected function convert(array $attributes, array $fieldset)
9696
'filters' => [],
9797
'entity' => static::ENTITY,
9898
'bind' => $fieldset['references']['customer']['to'] ?? null,
99-
'index' => $this->getIndex($attribute)
99+
'index' => $this->hasIndex($attribute)
100100
];
101101
}
102102
} else {
103103
$fields[$attribute->getName()] = [
104104
'type' => $this->getType($attribute),
105-
'index' => $this->getIndex($attribute)
105+
'index' => $this->hasIndex($attribute)
106106
];
107107
}
108108
}
@@ -159,7 +159,7 @@ protected function merge(array $dataFields, array $searchableFields)
159159
* @param Attribute $attribute
160160
* @return bool
161161
*/
162-
private function getIndex(Attribute $attribute): bool
162+
private function hasIndex(Attribute $attribute): bool
163163
{
164164
return $attribute->canBeFilterableInGrid()
165165
&& in_array(

0 commit comments

Comments
 (0)