mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing Blog archives when changing unpublished content's creation date
--HG-- branch : 1.x
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Orchard.Blogs.Handlers {
|
||||
|
||||
OnVersioning<BlogPostPart>((context, bp1, bp2) => {
|
||||
var commonPart = bp1.As<CommonPart>();
|
||||
if(commonPart == null || !commonPart.CreatedUtc.HasValue || !bp1.IsPublished)
|
||||
if(commonPart == null || !commonPart.CreatedUtc.HasValue || !bp1.IsPublished || !bp2.IsPublished)
|
||||
return;
|
||||
|
||||
_previousCreatedUtc[bp2] = commonPart.CreatedUtc.Value;
|
||||
|
||||
Reference in New Issue
Block a user