Skip to content

Commit 5d86c5d

Browse files
committed
Merge remote-tracking branch 'origin/ENGCOM-7151-magento-magento2-26075' into 2.4-develop-prs
2 parents 5ef07e5 + 782dad8 commit 5d86c5d

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form

1 file changed

+4
-0
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Weight.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ public function __construct(
8484
*/
8585
public function getElementHtml()
8686
{
87+
if ($this->getForm()->getDataObject()->getTypeInstance()->hasWeight()) {
88+
$this->weightSwitcher->setValue(WeightResolver::HAS_WEIGHT);
89+
}
90+
8791
if ($this->getDisabled()) {
8892
$this->weightSwitcher->setDisabled($this->getDisabled());
8993
}

0 commit comments

Comments
 (0)