You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Sam Bisbee (Closed) (JIRA)" <ji...@apache.org> on 2012/02/22 06:46:48 UTC
[jira] [Closed] (COUCHDB-409) $.couch.saveDoc() in jquery.couch.js
sets doc._id and doc._rev to undefined on error, causing a new doc to be
created if the same doc is modified and saved again
[ https://issues.apache.org/jira/browse/COUCHDB-409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sam Bisbee closed COUCHDB-409.
------------------------------
Resolved for a while. Closing.
> $.couch.saveDoc() in jquery.couch.js sets doc._id and doc._rev to undefined on error, causing a new doc to be created if the same doc is modified and saved again
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: COUCHDB-409
> URL: https://issues.apache.org/jira/browse/COUCHDB-409
> Project: CouchDB
> Issue Type: Bug
> Components: Futon
> Affects Versions: 0.9.1, 0.10
> Reporter: Jason Davies
> Assignee: Paul Joseph Davis
> Fix For: 0.9.1
>
> Attachments: jquery.couch.saveDoc.diff
>
>
> Simple fix attached. Recommend that we include this in 0.9.1 as it's a non-obvious annoyance that occurs when saving docs in Futon.
> For example, if I try and save a doc and validation fails, and I fix the doc and save again, it will be saved with a NEW document id, since doc._id is set to undefined.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira