mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -125,7 +125,7 @@ namespace Orchard.CustomForms.Controllers {
|
||||
if (!Services.Authorizer.Authorize(Permissions.CreateSubmitPermission(customForm.ContentType), contentItem, T("Couldn't create content")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
_contentManager.Create(contentItem, VersionOptions.Draft);
|
||||
//_contentManager.Create(contentItem, VersionOptions.Draft);
|
||||
|
||||
dynamic model = _contentManager.UpdateEditor(contentItem, this);
|
||||
|
||||
@@ -166,9 +166,10 @@ namespace Orchard.CustomForms.Controllers {
|
||||
|
||||
// save the submitted form
|
||||
if (!customForm.SaveContentItem) {
|
||||
Services.ContentManager.Remove(contentItem);
|
||||
// Services.ContentManager.Remove(contentItem);
|
||||
}
|
||||
else {
|
||||
_contentManager.Create(contentItem);
|
||||
conditionallyPublish(contentItem);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user