Issue #2656442 by swentel: Argument missing the 'context' key for 'decimal places' context
parent
a790ff2e60
commit
1405f15f3a
|
@ -55,7 +55,7 @@ class DecimalFormatter extends NumericFormatterBase {
|
||||||
$range = range(0, 10);
|
$range = range(0, 10);
|
||||||
$elements['scale'] = array(
|
$elements['scale'] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#title' => t('Scale', array(), array('decimal places')),
|
'#title' => t('Scale', array(), array('context' => 'decimal places')),
|
||||||
'#options' => array_combine($range, $range),
|
'#options' => array_combine($range, $range),
|
||||||
'#default_value' => $this->getSetting('scale'),
|
'#default_value' => $this->getSetting('scale'),
|
||||||
'#description' => t('The number of digits to the right of the decimal.'),
|
'#description' => t('The number of digits to the right of the decimal.'),
|
||||||
|
|
|
@ -81,7 +81,7 @@ class DecimalItem extends NumericItemBase {
|
||||||
$range = range(0, 10);
|
$range = range(0, 10);
|
||||||
$element['scale'] = array(
|
$element['scale'] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#title' => t('Scale', array(), array('decimal places')),
|
'#title' => t('Scale', array(), array('context' => 'decimal places')),
|
||||||
'#options' => array_combine($range, $range),
|
'#options' => array_combine($range, $range),
|
||||||
'#default_value' => $settings['scale'],
|
'#default_value' => $settings['scale'],
|
||||||
'#description' => t('The number of digits to the right of the decimal.'),
|
'#description' => t('The number of digits to the right of the decimal.'),
|
||||||
|
|
Loading…
Reference in New Issue