summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/number/number.module2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 741fdbf..e6a8113 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -9,6 +9,7 @@ Features:
- #131953 by markus_petrux - Views integration: expose additional db columns.
- #349987 by Michelle - Panels integration for fieldgroups.
- #362216 by markus_petrux - sort the admin/content/types/fields overview by field name.
+- #242583 by jmiccolis - Number: Push maximum 'scale' setting up to 10 for decimal fields.
Bugfixes:
- #392476 Make sure CCK textarea fields in a View don't have a span wrapped around a block-level element.
diff --git a/modules/number/number.module b/modules/number/number.module
index c197301..10c7b97 100644
--- a/modules/number/number.module
+++ b/modules/number/number.module
@@ -74,7 +74,7 @@ function number_field_settings($op, $field) {
);
$form['scale'] = array(
'#type' => 'select',
- '#options' => drupal_map_assoc(range(0, 2)),
+ '#options' => drupal_map_assoc(range(0, 10)),
'#title' => t('Scale'),
'#description' => t('The number of digits to the right of the decimal.'),
'#default_value' => is_numeric($field['scale']) ? $field['scale'] : 2,