I have a view of nodes.
The node has two fields. The first node field is a simple text field that is an editablefield in the view (a "title" kind of field, but not the title since the node title has no option to be an editablefield).

The second node field is a long text field (a "body" kind of field). Since I use ckeditor on this field, it is not saved via editablefield, but with a custom ajax solution and nodesave.

The problem is the following:
- I make changes to the second field, and save them,
- I check with devel module that the changes have been correctly saved in the node.
- I make changes to the first field that autosaves with editablefield
- I check with devel and I see that the first field changes are saved, but the second field changes have been erased.

I suspect that editablefield stores an older version of the node and saves that version, which is not modified when I save the node with my ajax/custom module solution.

The solution would be to adapt my custom ajax save so that it also updates the node version stored in editablefield, but I am not sure how to do that. Thanks for any ideas.

Comments

Taesto’s picture

Looks like this solves it :
http://drupal.org/node/1719824

lklimek’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#1719824: $entity loaded from form_state is potentially stale in editable_fields_form_submit()

Looks like duplicate of #1719824 .