diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/form.inc b/includes/form.inc index 0d08dd230..39972177f 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -74,6 +74,7 @@ function drupal_get_form($form_id) { // object, we're hitting the form for the first time and we need // to build it from scratch. if (!isset($form)) { + $form_state['post'] = $_POST; $form = call_user_func_array('drupal_retrieve_form', $args); $form_build_id = md5(mt_rand()); $form['#build_id'] = $form_build_id; @@ -81,6 +82,7 @@ function drupal_get_form($form_id) { if (!empty($form['#cache'])) { cache_set('form_'. $form_build_id, $form, 'cache_form', $expire); } + unset($form_state['post']); } $form['#post'] = $_POST; |