From e22b2153a2a83b1d1eca60c62703514cd09a55aa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 24 Sep 2010 21:36:22 +0000 Subject: - Patch #140783 by sun: a select list without #default_value() always passes form validation. --- includes/install.core.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/install.core.inc') diff --git a/includes/install.core.inc b/includes/install.core.inc index 56f3e4091..b6dd5f1b3 100644 --- a/includes/install.core.inc +++ b/includes/install.core.inc @@ -1749,11 +1749,11 @@ function _install_configure_form($form, &$form_state, &$install_state) { ); $countries = country_get_list(); - $countries = array_merge(array('' => st('No default country')), $countries); $form['server_settings']['site_default_country'] = array( '#type' => 'select', '#title' => t('Default country'), - '#default_value' => variable_get('site_default_country', ''), + '#required' => FALSE, + '#default_value' => variable_get('site_default_country', NULL), '#options' => $countries, '#description' => st('Select the default country for the site.'), '#weight' => 0, -- cgit v1.2.3