? amazon.kpf
? files
? form_cache.patch
? sites/amazon
Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.248
diff -u -p -r1.248 form.inc
--- includes/form.inc	23 Nov 2007 12:02:38 -0000	1.248
+++ includes/form.inc	24 Nov 2007 09:45:38 -0000
@@ -188,7 +188,9 @@ function drupal_rebuild_form($form_id, &
   // Now, we cache the form structure so it can be retrieved later for
   // validation. If $form_state['storage'] is populated, we'll also cache
   // it so that it can be used to resume complex multi-step processes.
-  form_set_cache($form_build_id, $form, $form_state);
+  if (!empty($form['#cache'])) {
+    form_set_cache($form_build_id, $form, $form_state);
+  }
 
   // Clear out all post data, as we don't want the previous step's
   // data to pollute this one and trigger validate/submit handling,
