mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +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) {
|
if (context.Metadata.CreateRouteValues == null) {
|
||||||
context.Metadata.CreateRouteValues = new RouteValueDictionary {
|
context.Metadata.CreateRouteValues = new RouteValueDictionary {
|
||||||
{"Area", "Contents"},
|
{"Area", "Contents"},
|
||||||
{"Controller", "Item"},
|
{"Controller", "Admin"},
|
||||||
{"Action", "Create"}
|
{"Action", "Create"},
|
||||||
|
{"Id", context.ContentItem.ContentType}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (context.Metadata.EditorRouteValues == null) {
|
if (context.Metadata.EditorRouteValues == null) {
|
||||||
@@ -30,7 +31,7 @@ namespace Orchard.Core.Contents.Handlers {
|
|||||||
if (context.Metadata.RemoveRouteValues == null) {
|
if (context.Metadata.RemoveRouteValues == null) {
|
||||||
context.Metadata.RemoveRouteValues = new RouteValueDictionary {
|
context.Metadata.RemoveRouteValues = new RouteValueDictionary {
|
||||||
{"Area", "Contents"},
|
{"Area", "Contents"},
|
||||||
{"Controller", "Item"},
|
{"Controller", "Admin"},
|
||||||
{"Action", "Remove"},
|
{"Action", "Remove"},
|
||||||
{"Id", context.ContentItem.Id}
|
{"Id", context.ContentItem.Id}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user