Fixed Dynamic Forms Bindings issue. Fixes

ModelBinding failed due to the "null" key being specified. Instead, the type name of the model should be specified as the key (which happens by default when no key is specified). Not sure how this worked before, since this code has been there from the beginning, and file histories don;t show an obvious change. Perhaps due to the upgrade to newer ASP.NET MVC?
This commit is contained in:
Sipke Schoorstra 2016-03-02 23:51:22 +01:00
parent 6c93bf4d69
commit 3690968646

View File

@ -263,7 +263,7 @@ namespace Orchard.DynamicForms.Services {
ReadElementValues(element, context);
var value = context.Output[element.Name];
var bindingSettings = element.Data.GetModel<FormBindingSettings>(null);
var bindingSettings = element.Data.GetModel<FormBindingSettings>();
if (bindingSettings != null) {
foreach (var partBindingSettings in bindingSettings.Parts) {