Skip to content

Commit 9a679b0

Browse files
author
Michail Slabko
committed
MAGETWO-48093: Impossible to set 'Does this have a weight?' to 'Yes' for downloadable product
1 parent f93f18f commit 9a679b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Downloadable/view/adminhtml/web/downloadable-type-handler.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ define([
6565
if (productType.type.current === 'downloadable') {
6666
weight.change(false);
6767
weight.$weightSwitcher().one('change', function () {
68-
$(document).trigger('setTypeProduct', null);
68+
$(document).trigger(
69+
'setTypeProduct',
70+
productType.type.init === 'downloadable' ? 'virtual' : productType.type.init
71+
);
6972
});
7073
this.show();
7174
} else {

0 commit comments

Comments
 (0)