mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 20:18:37 +08:00
#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:
parent
4464d72c91
commit
684284747f
@ -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.
|
||||
return View((object)model);
|
||||
model.ContentItem(form);
|
||||
return View(model);
|
||||
}
|
||||
|
||||
contentItem.As<ICommonPart>().Container = customForm.ContentItem;
|
||||
|
Loading…
Reference in New Issue
Block a user