mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +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;
|
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) {
|
if (result.ContentField == null && ContentField != null) {
|
||||||
result.ContentField = ContentField;
|
result.ContentField = ContentField;
|
||||||
}
|
}
|
||||||
@@ -29,6 +31,19 @@ namespace Orchard.ContentManagement.Drivers {
|
|||||||
|
|
||||||
public override void Apply(BuildEditorContext context) {
|
public override void Apply(BuildEditorContext context) {
|
||||||
foreach (var result in _results) {
|
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);
|
result.Apply(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user