when saving a model using the model.save() method, a second save is rejected as the form id is the same i guess

Failed to load resource: the server responded with a status of 406 (Not Acceptable: The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved.)

will provide code to test

Comments

ethanw’s picture

It looks like your attempting to fetch a set of nodes via a view, then edit on of their title's via an in-place editor, then load again and edit again. Is that correct?

If so, I'd be interested to see the calls made to the server, such as a Firebug Network pane log...I'm curious to know whether it's sending PUTS or POSTS. I've seen erratic behavior with this on a few test apps, where it was always PUTing, even when I was trying to update.

Also could be useful to see the contents of the JSON object received via the view.

ethanw’s picture

Status: Active » Needs review
StatusFileSize
new1.07 KB

I finally got a lead on this from the Webform Calculator team. They need to set form rebuild to true for all AJAX submissions to avoid a similar error in their module.

I tried the same in Services' node resource and it appears to fix the issue. I'll upload the patch here to confirm the patch to services address the issue in other backbone apps, then crosspost to the Services queue once that's confirmed.

ethanw’s picture

Priority: Normal » Major
ethanw’s picture

Priority: Major » Normal

This has been downgraded in priority: RestWS is now the recommended backend.

ethanw’s picture

Issue summary: View changes

added error message