summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-17 17:18:03 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-17 17:18:03 +0000
commit3e82f941ec2baa8c8ccbd47454e77fc952ad3e31 (patch)
tree34c61abab170a2a00e45c93a6fe5e2b0259ce056 /includes/form.inc
parentf3710830c4ce624f2212b19228859d091e6c7ad6 (diff)
downloadbrdo-3e82f941ec2baa8c8ccbd47454e77fc952ad3e31.tar.gz
brdo-3e82f941ec2baa8c8ccbd47454e77fc952ad3e31.tar.bz2
- Patch #302240 by fago, sun: fixed button broken.
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc4
1 files changed, 2 insertions, 2 deletions
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