When editing a node, the nid is saved in a hidden form field so it is remembered when previewing and submitting. The vid, which is required now, is not saved in a hidden form field, which causes the vid to be lost after previewing or submitting the form. This may cause various problems, one of them being http://drupal.org/node/31102.

I made a patch that adds a hidden form field for vid. Thanks go to killes for seeing this rather critical bug.

CommentFileSizeAuthor
node.module_13.patch440 bytesdecafdennis

Comments

m3avrck’s picture

Status: Needs review » Reviewed & tested by the community

Agreed, code looks simple enough!

chx’s picture

Status: Reviewed & tested by the community » Postponed

Please postpone this until forms API is in...

killes@www.drop.org’s picture

Status: Postponed » Reviewed & tested by the community

changing status again so it doesn't get forgotten even after the commit of the forms patch. Just don't commit it. :p

chx’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
m3avrck’s picture

Version: » x.y.z
Status: Closed (fixed) » Active

I do not see this in CVS at all, opening back up.

m3avrck’s picture

Status: Active » Closed (fixed)

errr, nevermind looks like it is there!