Updating the Routeable slugify to use the item's path

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-13 08:37:13 -08:00
parent 036033116f
commit e56c682586
5 changed files with 7 additions and 25 deletions

View File

@@ -213,10 +213,7 @@ namespace Orchard.Core.Contents.Controllers {
if (!Services.Authorizer.Authorize(Permissions.PublishContent, contentItem, T("Couldn't create content")))
return new HttpUnauthorizedResult();
var isDraftable = contentItem.TypeDefinition.Settings.GetModel<ContentTypeSettings>().Draftable;
_contentManager.Create(
contentItem,
isDraftable ? VersionOptions.Draft : VersionOptions.Published);
_contentManager.Create(contentItem, VersionOptions.Draft);
var model = _contentManager.UpdateEditor(contentItem, this);
if (!ModelState.IsValid) {