Skip to content

Commit e116dd0

Browse files
committed
Resolve issue of finset and nfinset search by array value
1 parent fe9cef6 commit e116dd0

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
@@ -2976,6 +2976,9 @@ public function prepareSqlCondition($fieldName, $condition)
29762976
if (($key == 'in' || $key == 'nin') && is_string($value)) {
29772977
$value = explode(',', $value);
29782978
}
2979+
if (($key == 'finset' || $key == 'nfinset') && is_array($value)) {
2980+
$value = implode(',', $value);
2981+
}
29792982
$query = $this->_prepareQuotedSqlCondition($conditionKeyMap[$key], $value, $fieldName);
29802983
} else {
29812984
$queries = [];

0 commit comments

Comments
 (0)