From 692440692862d42f6ec4b2c4fec6e06c9b72e169 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Sun, 11 Oct 2015 22:42:25 -0400 Subject: Issue #1275978 by pillarsdotnet, Zgear, cck, dcam: The thousand_separator for numeric fields should default to '' (nothing) instead of ' ' (space) --- CHANGELOG.txt | 2 ++ modules/field/modules/number/number.module | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8dc7d1d40..c857dfde7 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,8 @@ Drupal 7.40, xxxx-xx-xx (development version) ----------------------- +- Changed the default thousand marker for numeric fields from a space ("1 000") + to nothing ("1000"). - Prevented malformed theme .info files (without a "name" key) from causing exceptions during menu rebuilds. If an .info file without a "name" key is found in a module or theme directory, Drupal will now use the module or diff --git a/modules/field/modules/number/number.module b/modules/field/modules/number/number.module index 60465442f..d00c55f07 100644 --- a/modules/field/modules/number/number.module +++ b/modules/field/modules/number/number.module @@ -188,7 +188,7 @@ function number_field_formatter_info() { 'label' => t('Default'), 'field types' => array('number_integer'), 'settings' => array( - 'thousand_separator' => ' ', + 'thousand_separator' => '', // The 'decimal_separator' and 'scale' settings are not configurable // through the UI, and will therefore keep their default values. They // are only present so that the 'number_integer' and 'number_decimal' @@ -202,7 +202,7 @@ function number_field_formatter_info() { 'label' => t('Default'), 'field types' => array('number_decimal', 'number_float'), 'settings' => array( - 'thousand_separator' => ' ', + 'thousand_separator' => '', 'decimal_separator' => '.', 'scale' => 2, 'prefix_suffix' => TRUE, -- cgit v1.2.3