diff --git a/core/modules/options/options.module b/core/modules/options/options.module index d3f9298..cc93eac 100644 --- a/core/modules/options/options.module +++ b/core/modules/options/options.module @@ -188,10 +188,8 @@ function options_field_settings_form_validate_allowed_values($element, &$form_st form_error($element, $form_state, t('Allowed values list: each key must be a string at most 255 characters long.')); break; } - // PHP has problems with typecasting. We've passed other validation so now - // make sure we have actual integer keys and not strings if this is an - // integer list. To do this we have to remove the old keys and replace - // them with specific typecast keys. + // Integer list keys that have leading zeros should not be stored as strings + // (i.e. "01" must be stored as 1). if ($field_type == 'list_integer') { unset($values[$key]); $key = (int) $key;