Skip to content

Commit dfa74ca

Browse files
committed
Merge branch 'release/3.817.0'
2 parents 82114a6 + f890cee commit dfa74ca

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<!-- These properties will be shared for all projects -->
44
<PropertyGroup>
5-
<VersionPrefix>3.816.0</VersionPrefix>
5+
<VersionPrefix>3.817.0</VersionPrefix>
66
<VersionSuffix>
77
</VersionSuffix>
88
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>

src/VirtoCommerce.CoreModule.Core/Seo/CompositeSeoResolver.cs

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ public CompositeSeoResolver(IEnumerable<ISeoResolver> resolvers, CompositeSeoByS
1818
public async Task<IList<SeoInfo>> FindSeoAsync(SeoSearchCriteria criteria)
1919
{
2020
var tasks = _resolvers.Select(x => x.FindSeoAsync(criteria)).ToArray();
21-
var result = (await Task.WhenAll(tasks)).SelectMany(x => x).Where(x => x.ObjectId != null && x.ObjectType != null).Distinct();
21+
var result = (await Task.WhenAll(tasks)).SelectMany(x => x).Where(x => x.ObjectId != null && x.ObjectType != null).Distinct().ToList();
22+
23+
if (result.Count > 0)
24+
{
25+
return result;
26+
}
27+
2228
var fallbackResults = await _seoBySlugResolver.FindSeoBySlugAsync(criteria.Slug);
23-
return result.Union(fallbackResults).ToList();
29+
return fallbackResults;
2430
}
2531
}
2632

src/VirtoCommerce.CoreModule.Web/module.manifest

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
33
<id>VirtoCommerce.Core</id>
4-
<version>3.816.0</version>
4+
<version>3.817.0</version>
55
<version-tag />
66
<platformVersion>3.877.0</platformVersion>
77
<title>Commerce core module</title>

0 commit comments

Comments
 (0)