Skip to content

Commit 36738ec

Browse files
committed
Fix #6310 - restore weight value check
1 parent f6f414b commit 36738ec

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)