mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixed Dynamic Forms Bindings issue. Fixes #6470
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user