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 7
7
namespace Magento \Swatches \Model \ResourceModel ;
8
8
9
9
/**
10
- * @codeCoverageIgnore
11
10
* Swatch Resource Model
11
+ *
12
+ * @codeCoverageIgnore
12
13
* @api
13
14
* @since 100.0.2
14
15
*/
@@ -25,8 +26,10 @@ protected function _construct()
25
26
}
26
27
27
28
/**
28
- * @param string $defaultValue
29
+ * Update default swatch option value.
30
+ *
29
31
* @param integer $id
32
+ * @param string $defaultValue
30
33
* @return void
31
34
*/
32
35
public function saveDefaultSwatchOption ($ id , $ defaultValue )
@@ -49,7 +52,7 @@ public function clearSwatchOptionByOptionIdAndType($optionIDs, $type = null)
49
52
{
50
53
if (count ($ optionIDs )) {
51
54
foreach ($ optionIDs as $ optionId ) {
52
- $ where = ['option_id ' => $ optionId ];
55
+ $ where = ['option_id = ? ' => $ optionId ];
53
56
if ($ type !== null ) {
54
57
$ where ['type = ? ' ] = $ type ;
55
58
}
You can’t perform that action at this time.
0 commit comments