#84111 by AjK. Be sure to get the right multistep form.

5.x
Neil Drumm 2006-09-23 07:50:16 +00:00
parent 5406c8d9da
commit 88d14981f2
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ function drupal_get_form($form_id) {
// then go on to the one that was requested if everything works.
$form_build_id = md5(mt_rand());
if (isset($_POST['form_build_id']) && isset($_SESSION['form'][$_POST['form_build_id']])) {
if (isset($_POST['form_build_id']) && isset($_SESSION['form'][$_POST['form_build_id']]) && $_POST['form_id'] == $form_id) {
// There's a previously stored multi-step form. We should handle
// IT first.
$stored = TRUE;