mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
Fixing incorrect action.
--HG-- branch : dev
This commit is contained in:
@@ -288,8 +288,7 @@ namespace Orchard.Core.Contents.Controllers {
|
|||||||
return RedirectToAction("Edit", new RouteValueDictionary { { "Id", contentItem.Id } });
|
return RedirectToAction("Edit", new RouteValueDictionary { { "Id", contentItem.Id } });
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost, ActionName("Remove")]
|
public ActionResult Remove(int id, string returnUrl) {
|
||||||
public ActionResult RemovePOST(int id, string returnUrl) {
|
|
||||||
var contentItem = _contentManager.Get(id, VersionOptions.Latest);
|
var contentItem = _contentManager.Get(id, VersionOptions.Latest);
|
||||||
|
|
||||||
if (!Services.Authorizer.Authorize(Permissions.DeleteContent, contentItem, T("Couldn't remove content")))
|
if (!Services.Authorizer.Authorize(Permissions.DeleteContent, contentItem, T("Couldn't remove content")))
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
@using Orchard.ContentManagement;
|
@using Orchard.ContentManagement;
|
||||||
@using Orchard.Utility.Extensions;
|
@using Orchard.Utility.Extensions;
|
||||||
@{
|
@{
|
||||||
ContentItem contentItem = Model.ContentItem;
|
ContentItem contentItem = Model.ContentItem;
|
||||||
var returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString();
|
var returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString();
|
||||||
}
|
}
|
||||||
<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
|
<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
|
||||||
<div class="properties">
|
<div class="properties">
|
||||||
|
@@ -51,7 +51,7 @@ namespace Orchard.Widgets.Controllers {
|
|||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
|
|
||||||
currentLayerWidgets = _widgetsService.GetWidgets().Where(widgetPart => widgetPart.LayerPart.Id == currentLayer.Id);
|
currentLayerWidgets = _widgetsService.GetWidgets(currentLayer.Id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
currentLayer = null;
|
currentLayer = null;
|
||||||
|
Reference in New Issue
Block a user