summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-21 21:05:22 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-21 21:05:22 +0000
commitbf534a219fec45f05535f4db150cf8b5d052e031 (patch)
tree90dbccae9390cced1bf5a433b6f364645d16af60 /includes
parent3999984bf8d59b4f95f63db5dba044946322b7d8 (diff)
downloadbrdo-bf534a219fec45f05535f4db150cf8b5d052e031.tar.gz
brdo-bf534a219fec45f05535f4db150cf8b5d052e031.tar.bz2
#992928 by das-peter, David_Rothstein: Fixed Command line (Drush) install fails on SQLite (#limit_validation_errors doesn't work for programmatic form submissions)
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index b639fa650..9018931ef 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -661,9 +661,14 @@ function drupal_form_submit($form_id, &$form_state) {
// Merge in default values.
$form_state += form_state_defaults();
- $form = drupal_retrieve_form($form_id, $form_state);
+ // Populate $form_state['input'] with the submitted values before retrieving
+ // the form, to be consistent with what drupal_build_form() does for
+ // non-programmatic submissions (form builder functions may expect it to be
+ // there).
$form_state['input'] = $form_state['values'];
+
$form_state['programmed'] = TRUE;
+ $form = drupal_retrieve_form($form_id, $form_state);
// Programmed forms are always submitted.
$form_state['submitted'] = TRUE;