Cherry picked from 4c08b44684
This commit is contained in:
committed by
Sebastiaan Janssen
parent
4fdbfee597
commit
4f48a4937b
@@ -31,7 +31,8 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache.DataSource
|
||||
var templateId = PrimitiveSerializer.Int32.ReadFrom(stream);
|
||||
var properties = _dictionaryOfPropertyDataSerializer?.ReadFrom(stream); // TODO: We don't want to allocate empty arrays
|
||||
var cultureInfos = s_defaultCultureVariationsSerializer.ReadFrom(stream); // TODO: We don't want to allocate empty arrays
|
||||
return new ContentData(name, urlSegment, versionId, versionDate, writerId, templateId, published, properties, cultureInfos);
|
||||
var cachedTemplateId = templateId == 0 ? (int?)null : templateId;
|
||||
return new ContentData(name, urlSegment, versionId, versionDate, writerId, cachedTemplateId, published, properties, cultureInfos);
|
||||
}
|
||||
|
||||
public void WriteTo(ContentData value, Stream stream)
|
||||
|
||||
@@ -830,7 +830,7 @@ AND cmsContentNu.nodeId IS NULL
|
||||
dto.VersionId,
|
||||
dto.EditVersionDate,
|
||||
dto.EditWriterId,
|
||||
dto.EditTemplateId,
|
||||
dto.EditTemplateId == 0 ? null : dto.EditTemplateId,
|
||||
published,
|
||||
deserializedContent?.PropertyData,
|
||||
deserializedContent?.CultureData);
|
||||
@@ -859,7 +859,7 @@ AND cmsContentNu.nodeId IS NULL
|
||||
dto.VersionId,
|
||||
dto.PubVersionDate,
|
||||
dto.PubWriterId,
|
||||
dto.PubTemplateId,
|
||||
dto.PubTemplateId == 0 ? null : dto.PubTemplateId,
|
||||
published,
|
||||
deserializedContent?.PropertyData,
|
||||
deserializedContent?.CultureData);
|
||||
|
||||
Reference in New Issue
Block a user