mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixing merge
This commit is contained in:
@@ -90,9 +90,10 @@ namespace Orchard.Layouts.Drivers {
|
||||
|
||||
protected override DriverResult Editor(LayoutPart part, IUpdateModel updater, dynamic shapeHelper) {
|
||||
return ContentShape("Parts_Layout_Edit", () => {
|
||||
|
||||
if (part.Id == 0 && String.IsNullOrWhiteSpace(part.LayoutData)) {
|
||||
|
||||
var settings = part.TypePartDefinition.Settings.GetModel<LayoutTypePartSettings>();
|
||||
|
||||
// If the default layout setting is left empty, use the one from the service
|
||||
if (String.IsNullOrWhiteSpace(settings.DefaultLayoutData)) {
|
||||
var defaultData = _serializer.Serialize(_layoutManager.CreateDefaultLayout());
|
||||
|
Reference in New Issue
Block a user