Merge 7.4.0 into dev-v7-deploy
This commit is contained in:
@@ -121,6 +121,8 @@ namespace Umbraco.Web.Models.Mapping
|
||||
//ignore, we'll do this in after map
|
||||
.ForMember(dto => dto.PropertyGroups, expression => expression.Ignore())
|
||||
.ForMember(dto => dto.NoGroupPropertyTypes, expression => expression.Ignore())
|
||||
// ignore, composition is managed in AfterMapContentTypeSaveToEntity
|
||||
.ForMember(dest => dest.ContentTypeComposition, opt => opt.Ignore())
|
||||
|
||||
.ForMember(
|
||||
dto => dto.AllowedContentTypes,
|
||||
|
||||
@@ -460,8 +460,19 @@ namespace UmbracoExamine
|
||||
if (xDoc != null)
|
||||
{
|
||||
var rootNode = xDoc.Root;
|
||||
|
||||
AddNodesToIndex(rootNode.Elements(), type);
|
||||
if (rootNode != null)
|
||||
{
|
||||
//the result will either be a single doc with an id as the root, or it will
|
||||
// be multiple docs with a <nodes> wrapper, we need to check for this
|
||||
if (rootNode.HasAttributes)
|
||||
{
|
||||
AddNodesToIndex(new[] {rootNode}, type);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddNodesToIndex(rootNode.Elements(), type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user