File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function __construct(
60
60
$ this ->localeFormat = $ localeFormat ;
61
61
$ this ->weightSwitcher = $ factoryElement ->create ('radios ' );
62
62
$ this ->weightSwitcher ->setValue (
63
- WeightResolver::HAS_WEIGHT
63
+ WeightResolver::HAS_NO_WEIGHT
64
64
)->setValues (
65
65
[
66
66
['value ' => WeightResolver::HAS_WEIGHT , 'label ' => __ ('Yes ' )],
@@ -84,10 +84,6 @@ public function __construct(
84
84
*/
85
85
public function getElementHtml ()
86
86
{
87
- if (!$ this ->getForm ()->getDataObject ()->getTypeInstance ()->hasWeight ()) {
88
- $ this ->weightSwitcher ->setValue (WeightResolver::HAS_NO_WEIGHT );
89
- }
90
-
91
87
if ($ this ->getDisabled ()) {
92
88
$ this ->weightSwitcher ->setDisabled ($ this ->getDisabled ());
93
89
}
You can’t perform that action at this time.
0 commit comments