Skip to content

Commit 1d68063

Browse files
author
Valeriy Nayda
committed
MAGETWO-42947: Only one value can be set as default for multiple select attribute
-- Fix static tests
1 parent b7a49a0 commit 1d68063

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Catalog/view/adminhtml/web/js

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/options.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ define([
130130
},
131131
getOptionInputType: function () {
132132
var optionDefaultInputType = 'radio';
133-
if ($('frontend_input') && $('frontend_input').value == 'multiselect') {
133+
134+
if ($('frontend_input') && $('frontend_input').value === 'multiselect') {
134135
optionDefaultInputType = 'checkbox';
135136
}
136137
return optionDefaultInputType;

0 commit comments

Comments
 (0)