mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +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:
parent
6c93bf4d69
commit
3690968646
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user