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.

Comments

antoniopironti’s picture

Status: Active » Needs review
StatusFileSize
new538 bytes

Here is the patch.

davisben’s picture

Status: Needs review » Fixed

Thanks for the patch! Committed to 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

A simple mispelling correction