Skip to content

Commit 360a094

Browse files
author
Alex Bomko
committed
MAGETWO-44959: Bundle product: Dynamic Weight is available for input
1 parent b457988 commit 360a094

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes

1 file changed

+3
-1
lines changed

app/code/Magento/Bundle/view/adminhtml/templates/catalog/product/edit/tab/attributes/extend.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ $isElementReadonly = $block->getElement()
6161
&& !$block->getProduct()->isObjectNew())) { ?>
6262
$('<?= /* @escapeNotVerified */ $switchAttributeCode?>').observe('change', <?= /* @escapeNotVerified */ $switchAttributeCode?>_change);
6363
<?php } ?>
64-
<?= /* @escapeNotVerified */ $switchAttributeCode?>_change();
64+
Event.observe(window, 'load', function(){
65+
<?= /* @escapeNotVerified */ $switchAttributeCode?>_change();
66+
});
6567
});
6668
</script>
6769
<?php } ?>

0 commit comments

Comments
 (0)