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 5ef07e5 + 782dad8 commit 5d86c5dCopy full SHA for 5d86c5d
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Weight.php
@@ -84,6 +84,10 @@ public function __construct(
84
*/
85
public function getElementHtml()
86
{
87
+ if ($this->getForm()->getDataObject()->getTypeInstance()->hasWeight()) {
88
+ $this->weightSwitcher->setValue(WeightResolver::HAS_WEIGHT);
89
+ }
90
+
91
if ($this->getDisabled()) {
92
$this->weightSwitcher->setDisabled($this->getDisabled());
93
}
0 commit comments