From 3e82f941ec2baa8c8ccbd47454e77fc952ad3e31 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 17 Dec 2009 17:18:03 +0000 Subject: - Patch #302240 by fago, sun: fixed button broken. --- includes/form.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index 47d8c9908..4ae2bb40b 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -231,12 +231,12 @@ function drupal_build_form($form_id, &$form_state) { // the form will simply be re-rendered with the values still in its // fields. // - // If $form_state['rebuild'] has been set and the form has been submitted, we + // If $form_state['rebuild'] has been set and input has been processed, we // know that we're in a multi-part process of some sort and the form's // workflow is not complete. We need to construct a fresh copy of the form, // passing in the latest $form_state in addition to any other variables passed // into drupal_get_form(). - if ($form_state['rebuild'] && $form_state['submitted'] && !form_get_errors()) { + if ($form_state['rebuild'] && $form_state['process_input'] && !form_get_errors()) { $form = drupal_rebuild_form($form_id, $form_state); } // After processing the form, the form builder or a #process callback may -- cgit v1.2.3