mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +08:00
Fixing fake Parts properties in shape tracing model
--HG-- branch : dev
This commit is contained in:
@@ -119,6 +119,14 @@ namespace Orchard.DesignerTools.Services {
|
||||
continue;
|
||||
}
|
||||
|
||||
// process ContentItem.Parts specifically
|
||||
if (o is ContentItem && member.Name == "Parts") {
|
||||
foreach (var part in ((ContentItem)o).Parts) {
|
||||
Dump(part, part.PartDefinition.Name);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
DumpMember(o, member);
|
||||
}
|
||||
@@ -126,12 +134,6 @@ namespace Orchard.DesignerTools.Services {
|
||||
}
|
||||
}
|
||||
|
||||
if (o is ContentItem) {
|
||||
foreach(var part in ((ContentItem)o).Parts) {
|
||||
Dump(part, part.PartDefinition.Name);
|
||||
}
|
||||
}
|
||||
|
||||
_node = _node.Parent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user