Skip to content

Commit d458cac

Browse files
author
Michail Slabko
committed
Merge remote-tracking branch 'origin/MAGETWO-48093' into pr-335
2 parents 0a2e459 + 9a679b0 commit d458cac

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)