#19372: Consistifying ContentITem value on Model Validation Error. At the same time removing the cast from dynamic to object, since we dropped support for less than Full trust.

Work Item: 19372

--HG--
branch : 1.x
This commit is contained in:
Sipke Schoorstra
2012-12-22 10:06:05 +01:00
parent 4464d72c91
commit 684284747f

View File

@@ -137,8 +137,8 @@ namespace Orchard.CustomForms.Controllers {
} }
} }
// Casting to avoid invalid (under medium trust) reflection over the protected View method and force a static invocation. model.ContentItem(form);
return View((object)model); return View(model);
} }
contentItem.As<ICommonPart>().Container = customForm.ContentItem; contentItem.As<ICommonPart>().Container = customForm.ContentItem;