I have created a view for drag and drop ordering, but it doesn't save the weight to the node, just goes back to all being 0.

I have also tried changing the weight from within the node but I get this error
Notice: Undefined index: weight in locale_field_node_form_submit() (line 404

so might be related

Comments

ludo.r’s picture

I have the same issue. Submitting the new order within a view doesn't save anything in field_data_weight.

Besides, when I edit the node, I get this error :

Notice: Undefined index: weight in locale_field_node_form_submit() (line 404 of D:\www\my-site\modules\locale\locale.module).

But the weight is saved into the field_data_weight table.

davisben’s picture

Status: Active » Fixed

A fix for this issue has been committed to 7.x-2.x.

skolesnyk’s picture

Thanks, Feb-03 update fixes this issue!

Status: Fixed » Closed (fixed)

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

futurist’s picture

How can a "view for drag and drop ordering", like stated by the OP be created using the Weight module? (This sounds like a feature from the DraggableViews module.) So far the only places I know of for setting weight was on the node edit form and admin/content page. Thanks for clarifying.

davisben’s picture

A default view is included with the module, disabled by default. You can enable and customize that view to get the drag and drop.