Skip to content

Commit 4ad7bd3

Browse files
hostepAmol Chaudhari
authored andcommitted
Fixes incorrect where condition when deleting swatch option, it deleted all options instead of a specific one.
1 parent 7a3ee17 commit 4ad7bd3

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Swatches/Model/ResourceModel

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Model/ResourceModel/Swatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function clearSwatchOptionByOptionIdAndType($optionIDs, $type = null)
4949
{
5050
if (count($optionIDs)) {
5151
foreach ($optionIDs as $optionId) {
52-
$where = ['option_id' => $optionId];
52+
$where = ['option_id = ?' => $optionId];
5353
if ($type !== null) {
5454
$where['type = ?'] = $type;
5555
}

0 commit comments

Comments
 (0)