Skip to content

Commit b138428

Browse files
suneet64mage2pratik
authored andcommitted
Fixed issue if there are multiple skus in catalog rule condition combination.
1 parent 994348f commit b138428

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Rule/Model/Condition/Product/AbstractProduct.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ public function loadArray($arr)
520520
) ? $this->_localeFormat->getNumber(
521521
$arr['is_value_parsed']
522522
) : false;
523+
} elseif (!empty($arr['operator']) && $arr['operator'] == '()') {
524+
if (isset($arr['value'])) {
525+
$arr['value'] = preg_replace('/\s*,\s*/', ',', $arr['value']);
526+
}
523527
}
524528

525529
return parent::loadArray($arr);

0 commit comments

Comments
 (0)