Fixing fake Parts properties in shape tracing model

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2011-03-24 22:18:43 -07:00
parent 2f5a17706d
commit ba36f53374

View File

@@ -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;
}