Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
commerce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
commerce
Commits
e10c1acc
Commit
e10c1acc
authored
2 years ago
by
Dimitris Bozelos
Committed by
Jonathan Sacksick
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3316974
: PriceItem field type does not filter available currencies stored in config.
parent
25197998
No related branches found
No related tags found
2 merge requests
!235
Issue #3115150 by mbovan: Submitting add to cart form with empty quantity...
,
!205
Issue #3349465 by tBKoT, jsacksick, bojanz: Update several VAT rates and setup...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/price/src/Plugin/Field/FieldType/PriceItem.php
+10
-0
10 additions, 0 deletions
modules/price/src/Plugin/Field/FieldType/PriceItem.php
with
10 additions
and
0 deletions
modules/price/src/Plugin/Field/FieldType/PriceItem.php
+
10
−
0
View file @
e10c1acc
...
...
@@ -127,6 +127,16 @@ class PriceItem extends FieldItemBase {
return
$element
;
}
/**
* {@inheritdoc}
*/
public
static
function
fieldSettingsToConfigData
(
array
$settings
)
{
$settings
[
'available_currencies'
]
=
array_filter
(
$settings
[
'available_currencies'
]
);
return
$settings
;
}
/**
* {@inheritdoc}
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment