Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
1405f15f
Commit
1405f15f
authored
Jan 26, 2016
by
alexpott
Browse files
Issue
#2656442
by swentel: Argument missing the 'context' key for 'decimal places' context
parent
a790ff2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/DecimalFormatter.php
View file @
1405f15f
...
...
@@ -55,7 +55,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
$range
=
range
(
0
,
10
);
$elements
[
'scale'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Scale'
,
array
(),
array
(
'decimal places'
)),
'#title'
=>
t
(
'Scale'
,
array
(),
array
(
'context'
=>
'decimal places'
)),
'#options'
=>
array_combine
(
$range
,
$range
),
'#default_value'
=>
$this
->
getSetting
(
'scale'
),
'#description'
=>
t
(
'The number of digits to the right of the decimal.'
),
...
...
core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
View file @
1405f15f
...
...
@@ -81,7 +81,7 @@ public function storageSettingsForm(array &$form, FormStateInterface $form_state
$range
=
range
(
0
,
10
);
$element
[
'scale'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Scale'
,
array
(),
array
(
'decimal places'
)),
'#title'
=>
t
(
'Scale'
,
array
(),
array
(
'context'
=>
'decimal places'
)),
'#options'
=>
array_combine
(
$range
,
$range
),
'#default_value'
=>
$settings
[
'scale'
],
'#description'
=>
t
(
'The number of digits to the right of the decimal.'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment