Skip to content

Commit cf9a667

Browse files
author
Paul Johnson
committed
Bugfix - DocumentVersionRepository.Get should not join culture variation
1 parent d89725b commit cf9a667

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Umbraco.Core/Persistence/Repositories/Implement/DocumentVersionRepository.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ public ContentVersionMeta Get(int versionId)
172172
.On<ContentVersionDto, DocumentVersionDto>(left => left.Id, right => right.Id)
173173
.LeftJoin<UserDto>()
174174
.On<UserDto, ContentVersionDto>(left => left.Id, right => right.UserId)
175-
.LeftJoin<ContentVersionCultureVariationDto>()
176-
.On<ContentVersionCultureVariationDto, ContentVersionDto>(left => left.VersionId, right => right.Id)
177175
.Where<ContentVersionDto>(x => x.Id == versionId);
178176

179177
return _scopeAccessor.AmbientScope.Database.Single<ContentVersionMeta>(query);

0 commit comments

Comments
 (0)