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.
1 parent f93f18f commit 9a679b0Copy full SHA for 9a679b0
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