mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 12:53:33 +08:00
Removing local tests from ArchiveLater included during Shapes migration
--HG-- branch : dev
This commit is contained in:
@@ -26,14 +26,11 @@ namespace Orchard.ArchiveLater.Drivers {
|
|||||||
|
|
||||||
protected override DriverResult Display(ArchiveLaterPart part, string displayType, dynamic shapeHelper) {
|
protected override DriverResult Display(ArchiveLaterPart part, string displayType, dynamic shapeHelper) {
|
||||||
return ContentShape("Parts_ArchiveLater_Metadata_SummaryAdmin",
|
return ContentShape("Parts_ArchiveLater_Metadata_SummaryAdmin",
|
||||||
shape => {
|
shape => shape
|
||||||
part.ScheduledArchiveUtc.Value = DateTime.UtcNow.AddDays(5);
|
|
||||||
|
|
||||||
return shape
|
|
||||||
.ContentPart(part)
|
.ContentPart(part)
|
||||||
.ScheduledArchiveUtc(part.ScheduledArchiveUtc.Value)
|
.ScheduledArchiveUtc(part.ScheduledArchiveUtc.Value)
|
||||||
.IsPublished(part.ContentItem.VersionRecord != null && part.ContentItem.VersionRecord.Published);
|
.IsPublished(part.ContentItem.VersionRecord != null && part.ContentItem.VersionRecord.Published)
|
||||||
});
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override DriverResult Editor(ArchiveLaterPart part, dynamic shapeHelper) {
|
protected override DriverResult Editor(ArchiveLaterPart part, dynamic shapeHelper) {
|
||||||
|
Reference in New Issue
Block a user