Issue #2656442 by swentel: Argument missing the 'context' key for 'decimal places' context

8.1.x
Alex Pott 2016-01-26 13:15:24 +00:00
parent a790ff2e60
commit 1405f15f3a
2 changed files with 2 additions and 2 deletions

View File

@ -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.'),

View File

@ -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.'),