If you are editing a form that has multi-valued fields, and you've added additional values (with "Add another item"), then those values will be dutifully autosaved by this module. However, when you come back to the form, the form will be built without the extra slots for values. Thus, the autosaved values will not be restored.

This patch fixes that by comparing the saved values to the form definition, in autosave_form_alter. It will add any slots that need to be filled.

This includes all my previous patches as well, sorry. Ask me if you want this feature split out.

That is, this patch also contains patches from:
#1364958: Dialog-based UI
#1365044: Forget autosaved form on successful submit
#855354: Javascript issues: unused global variable, vaguely named element DOM ids, should use Drupal.behaviors
#998694: CCK fields set to "allow unlimited" disappear when 'Add another option' is selected.

CommentFileSizeAuthor
autosave-addanother.diff18.9 KBgalaxor
Support from Acquia helps fund testing for Drupal Acquia logo

Comments