Skip to content

Commit

Permalink
Fix magento#6310 - restore weight value check
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartlomiejsz committed Mar 26, 2020
1 parent f6f414b commit 36738ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public function __construct(
*/
public function getElementHtml()
{
if ($this->getForm()->getDataObject()->getTypeInstance()->hasWeight()) {
$this->weightSwitcher->setValue(WeightResolver::HAS_WEIGHT);
}

if ($this->getDisabled()) {
$this->weightSwitcher->setDisabled($this->getDisabled());
}
Expand Down

0 comments on commit 36738ec

Please sign in to comment.