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.
1 parent 2506c08 commit f6f414bCopy full SHA for f6f414b
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Weight.php
@@ -60,7 +60,7 @@ public function __construct(
60
$this->localeFormat = $localeFormat;
61
$this->weightSwitcher = $factoryElement->create('radios');
62
$this->weightSwitcher->setValue(
63
- WeightResolver::HAS_WEIGHT
+ WeightResolver::HAS_NO_WEIGHT
64
)->setValues(
65
[
66
['value' => WeightResolver::HAS_WEIGHT, 'label' => __('Yes')],
@@ -84,10 +84,6 @@ public function __construct(
84
*/
85
public function getElementHtml()
86
{
87
- if (!$this->getForm()->getDataObject()->getTypeInstance()->hasWeight()) {
88
- $this->weightSwitcher->setValue(WeightResolver::HAS_NO_WEIGHT);
89
- }
90
-
91
if ($this->getDisabled()) {
92
$this->weightSwitcher->setDisabled($this->getDisabled());
93
}
0 commit comments