mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Made order of field and part elements in export XML predictable.
This commit is contained in:
@@ -91,14 +91,14 @@ namespace Orchard.ContentManagement.Drivers.Coordinators {
|
|||||||
|
|
||||||
public override void Exporting(ExportContentContext context) {
|
public override void Exporting(ExportContentContext context) {
|
||||||
context.Logger = Logger;
|
context.Logger = Logger;
|
||||||
foreach (var contentFieldDriver in _drivers) {
|
foreach (var contentFieldDriver in _drivers.OrderBy(x => x.GetFieldInfo().First().FieldTypeName)) {
|
||||||
contentFieldDriver.Exporting(context);
|
contentFieldDriver.Exporting(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Exported(ExportContentContext context) {
|
public override void Exported(ExportContentContext context) {
|
||||||
context.Logger = Logger;
|
context.Logger = Logger;
|
||||||
foreach (var contentFieldDriver in _drivers) {
|
foreach (var contentFieldDriver in _drivers.OrderBy(x => x.GetFieldInfo().First().FieldTypeName)) {
|
||||||
contentFieldDriver.Exported(context);
|
contentFieldDriver.Exported(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,13 +79,13 @@ namespace Orchard.ContentManagement.Drivers.Coordinators {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override void Exporting(ExportContentContext context) {
|
public override void Exporting(ExportContentContext context) {
|
||||||
foreach (var contentPartDriver in _drivers) {
|
foreach (var contentPartDriver in _drivers.OrderBy(x => x.GetPartInfo().First().PartName)) {
|
||||||
contentPartDriver.Exporting(context);
|
contentPartDriver.Exporting(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Exported(ExportContentContext context) {
|
public override void Exported(ExportContentContext context) {
|
||||||
foreach (var contentPartDriver in _drivers) {
|
foreach (var contentPartDriver in _drivers.OrderBy(x => x.GetPartInfo().First().PartName)) {
|
||||||
contentPartDriver.Exported(context);
|
contentPartDriver.Exported(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user