Saving nodes on add
| Project: | Autosave |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Seeing all the work for saving forms, maybe this is issue is unimportant. But since the 5.x-1.2 version is still the recommended version, I'm submitting it.
I ran into this with the wikitools module, that checks to see if the newly added title has the same nid as an existing one. When autosaving from node/add/wiki, a node is created. Then when I hit submit from the form, the wikitools validate thinks it's adding a new node, and node validate fails.
The problem is that on node/add, when the node is autosaved, it now has a nid, vid, and changed, and a different form action url. These need to be updated on the form, so that when it is submitted, it's submitting an edit instead of an add.
| Attachment | Size |
|---|---|
| nodeadd.patch | 1.55 KB |

#1
Hey Doug,
I just added "my version" which is the cleaned up version of saving forms as 5.x-3.x. This is now the official suggested version of this module. I am new to using cvs on d.org though so i see that i never got my release as an official release - although it is posted on the releases page.
I'll look at that tonight.
#2
Ok, thanks, if 5.x-3 is now the supported version then this patch is moot. I'll retest with that version of autosave.