mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 01:57:55 +08:00
Adding missing code to previous changeset
--HG-- branch : 1.x
This commit is contained in:
@@ -19,6 +19,8 @@ namespace Orchard.ContentManagement.Drivers {
|
||||
result.ContentPart = ContentPart;
|
||||
}
|
||||
|
||||
// copy the ContentField which was used to render this result to its children
|
||||
// so they can assign it to the concrete shapes
|
||||
if (result.ContentField == null && ContentField != null) {
|
||||
result.ContentField = ContentField;
|
||||
}
|
||||
@@ -29,6 +31,19 @@ namespace Orchard.ContentManagement.Drivers {
|
||||
|
||||
public override void Apply(BuildEditorContext context) {
|
||||
foreach (var result in _results) {
|
||||
|
||||
// copy the ContentPart which was used to render this result to its children
|
||||
// so they can assign it to the concrete shapes
|
||||
if (result.ContentPart == null && ContentPart != null) {
|
||||
result.ContentPart = ContentPart;
|
||||
}
|
||||
|
||||
// copy the ContentField which was used to render this result to its children
|
||||
// so they can assign it to the concrete shapes
|
||||
if (result.ContentField == null && ContentField != null) {
|
||||
result.ContentField = ContentField;
|
||||
}
|
||||
|
||||
result.Apply(context);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user