Skip to content

Commit 1d3b9dd

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'api/MAGETWO-47451-In-Filter-In-Api' into cart-price-rules
2 parents c952ee8 + 65819d2 commit 1d3b9dd

File tree

1 file changed

+3
-0
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+3
-0
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,6 +2789,9 @@ public function prepareSqlCondition($fieldName, $condition)
27892789
if (($key == 'seq') || ($key == 'sneq')) {
27902790
$key = $this->_transformStringSqlCondition($key, $value);
27912791
}
2792+
if (($key == 'in' || $key == 'nin') && is_string($value)) {
2793+
$value = explode(',', $value);
2794+
}
27922795
$query = $this->_prepareQuotedSqlCondition($conditionKeyMap[$key], $value, $fieldName);
27932796
} else {
27942797
$queries = [];

0 commit comments

Comments
 (0)