We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a2e459 + 9a679b0 commit d458cacCopy full SHA for d458cac
app/code/Magento/Downloadable/view/adminhtml/web/downloadable-type-handler.js
@@ -65,7 +65,10 @@ define([
65
if (productType.type.current === 'downloadable') {
66
weight.change(false);
67
weight.$weightSwitcher().one('change', function () {
68
- $(document).trigger('setTypeProduct', null);
+ $(document).trigger(
69
+ 'setTypeProduct',
70
+ productType.type.init === 'downloadable' ? 'virtual' : productType.type.init
71
+ );
72
});
73
this.show();
74
} else {
0 commit comments