- Patch #760738 by yched: includes full form state in unneeded cases.

merge-requests/26/head
Dries Buytaert 2010-04-04 13:22:51 +00:00
parent 636b43e5a0
commit 7cd14c719d
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ function drupal_build_form($form_id, &$form_state) {
// Record the filepath of the include file containing the original form,
// so the form builder callbacks can be loaded when the form is being
// rebuilt from cache on a different path (such as 'system/ajax'). See
// form_get_cache().
// form_get_cache().
// $menu_get_item() is not available at installation time.
if (!isset($form_state['build_info']['file']) && !defined('MAINTENANCE_MODE')) {
$item = menu_get_item();
@ -655,7 +655,7 @@ function drupal_process_form($form_id, &$form, &$form_state) {
// - The form is multistep.
// In other cases, we only need the information expected by
// drupal_redirect_form().
if ($batch['has_form_submits'] || !empty($form_state['rebuild']) || !empty($form_state['storage'])) {
if ($batch['has_form_submits'] || !empty($form_state['rebuild'])) {
$batch['form_state'] = $form_state;
}
else {