mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Temp fix to unbreak blog post create/edit (working on a better fix)
--HG-- branch : dev
This commit is contained in:
@@ -40,7 +40,13 @@ namespace Orchard.Core.Common.Handlers {
|
|||||||
var method = driverType.GetMethod("GetDisplayRouteValues");
|
var method = driverType.GetMethod("GetDisplayRouteValues");
|
||||||
|
|
||||||
if (method != null) {
|
if (method != null) {
|
||||||
return (RouteValueDictionary)method.Invoke(driver, new object[] {contentItem.Get(driverType.BaseType.GetGenericArguments()[0])});
|
try {
|
||||||
|
return
|
||||||
|
(RouteValueDictionary)
|
||||||
|
method.Invoke(driver,
|
||||||
|
new object[] {contentItem.Get(driverType.BaseType.GetGenericArguments()[0])});
|
||||||
|
}
|
||||||
|
catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user