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
Merge requests
!353
Issue
#3481616
: Error in CountryCacheContext if no country is set.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3481616
: Error in CountryCacheContext if no country is set.
issue/commerce-3481616:3481616-error-in-countrycachecontext
into
3.0.x
Overview
0
Commits
1
Pipelines
7
Changes
1
Merged
Jonathan Sacksick
requested to merge
issue/commerce-3481616:3481616-error-in-countrycachecontext
into
3.0.x
5 months ago
Overview
0
Commits
1
Pipelines
7
Changes
1
Expand
Closes
#3481616
0
0
Merge request reports
Compare
3.0.x
version 3
ea19fe21
5 months ago
version 2
92a93b0a
5 months ago
version 1
49a72ed9
5 months ago
3.0.x (base)
and
latest version
latest version
ea19fe21
1 commit,
5 months ago
version 3
ea19fe21
1 commit,
5 months ago
version 2
92a93b0a
2 commits,
5 months ago
version 1
49a72ed9
1 commit,
5 months ago
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Cache/Context/CountryCacheContext.php
+
3
−
1
Options
@@ -41,7 +41,9 @@ class CountryCacheContext implements CacheContextInterface {
* {@inheritdoc}
*/
public
function
getContext
()
{
return
$this
->
currentCountry
->
getCountry
()
->
getCountryCode
();
// In case the current country cannot be determined, return "none" as the
// cache context.
return
$this
->
currentCountry
->
getCountry
()
?->
getCountryCode
()
??
'none'
;
}
/**
Loading