The problem occurs when in the admin/content page are listed nodes that do not use weight. To fix this issue all we have to do is to use an isset() in this line:
'#default_value' => $node->weight_weight
I hope to have the time of submit a patch ASAP.
P.S. : Maybe this issue is closely related to #1257842: Undefined property: stdClass::$node_weight in weight_form_alter() (line 284 ..... weight.module.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | weight-Undefined_property_-1570948-0.patch | 538 bytes | antoniopironti |
Comments
Comment #1
antoniopironti commentedHere is the patch.
Comment #2
davisbenThanks for the patch! Committed to 7.x-2.x.
Comment #3.0
(not verified) commentedA simple mispelling correction