mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixing Core.Contents' create and remove route value metadata
--HG-- branch : dev
This commit is contained in:
@@ -7,8 +7,9 @@ namespace Orchard.Core.Contents.Handlers {
|
||||
if (context.Metadata.CreateRouteValues == null) {
|
||||
context.Metadata.CreateRouteValues = new RouteValueDictionary {
|
||||
{"Area", "Contents"},
|
||||
{"Controller", "Item"},
|
||||
{"Action", "Create"}
|
||||
{"Controller", "Admin"},
|
||||
{"Action", "Create"},
|
||||
{"Id", context.ContentItem.ContentType}
|
||||
};
|
||||
}
|
||||
if (context.Metadata.EditorRouteValues == null) {
|
||||
@@ -30,7 +31,7 @@ namespace Orchard.Core.Contents.Handlers {
|
||||
if (context.Metadata.RemoveRouteValues == null) {
|
||||
context.Metadata.RemoveRouteValues = new RouteValueDictionary {
|
||||
{"Area", "Contents"},
|
||||
{"Controller", "Item"},
|
||||
{"Controller", "Admin"},
|
||||
{"Action", "Remove"},
|
||||
{"Id", context.ContentItem.Id}
|
||||
};
|
||||
|
Reference in New Issue
Block a user