Skip to content

Commit 750630a

Browse files
committed
fix issue with search starting as hex number like %ca
1 parent 42925af commit 750630a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/magento/lib/admin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export default magento => ({
156156
conditionType = 'like',
157157
) => {
158158
const currentPage = parseInt(offset / pageSize, 10) + 1;
159-
const currentAttributeValue = conditionType === 'eq' ? attributeValue : `%${attributeValue}%`;
159+
const currentAttributeValue = conditionType === 'eq' ? attributeValue : `%\\${attributeValue}%`;
160160
const params = {
161161
'searchCriteria[filterGroups][0][filters][0][field]': attributeCode,
162162
'searchCriteria[filterGroups][0][filters][0][value]': currentAttributeValue,

0 commit comments

Comments
 (0)