mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-23 04:43:35 +08:00
Wrapping up the current state of slug generation for Pages
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045559
This commit is contained in:
@@ -74,7 +74,6 @@ namespace Orchard.Blogs.Controllers {
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: (erikpo) Evaluate if publish options should be moved into create or out of create to keep it clean
|
||||
model.BlogPost = _services.ContentManager.UpdateEditorModel(_services.ContentManager.New<BlogPost>("blogpost"), this);
|
||||
model.BlogPost.Item.Blog = blog;
|
||||
if (!publishNow && publishDate != null)
|
||||
@@ -86,6 +85,7 @@ namespace Orchard.Blogs.Controllers {
|
||||
return View(model);
|
||||
}
|
||||
|
||||
//TODO: (erikpo) Evaluate if publish options should be moved into create or out of create to keep it clean
|
||||
_services.ContentManager.Create(model.BlogPost.Item.ContentItem, publishNow ? VersionOptions.Published : VersionOptions.Draft);
|
||||
|
||||
//TEMP: (erikpo) ensure information has committed for this record
|
||||
|
Reference in New Issue
Block a user