File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/code/Magento/Swatches/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 77namespace Magento \Swatches \Model \ResourceModel ;
88
99/**
10- * @codeCoverageIgnore
1110 * Swatch Resource Model
11+ *
12+ * @codeCoverageIgnore
1213 * @api
1314 * @since 100.0.2
1415 */
@@ -25,8 +26,10 @@ protected function _construct()
2526 }
2627
2728 /**
28- * @param string $defaultValue
29+ * Update default swatch option value.
30+ *
2931 * @param integer $id
32+ * @param string $defaultValue
3033 * @return void
3134 */
3235 public function saveDefaultSwatchOption ($ id , $ defaultValue )
@@ -49,7 +52,7 @@ public function clearSwatchOptionByOptionIdAndType($optionIDs, $type = null)
4952 {
5053 if (count ($ optionIDs )) {
5154 foreach ($ optionIDs as $ optionId ) {
52- $ where = ['option_id ' => $ optionId ];
55+ $ where = ['option_id = ? ' => $ optionId ];
5356 if ($ type !== null ) {
5457 $ where ['type = ? ' ] = $ type ;
5558 }
You can’t perform that action at this time.
0 commit comments