Saving nodes on add

douggreen - May 5, 2008 - 16:02
Project:Autosave
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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.

AttachmentSize
nodeadd.patch1.55 KB

#1

liquidcms - May 5, 2008 - 16:17

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

douggreen - May 9, 2008 - 23:57
Status:patch (code needs review)» won't fix

Ok, thanks, if 5.x-3 is now the supported version then this patch is moot. I'll retest with that version of autosave.

 
 

Drupal is a registered trademark of Dries Buytaert.