mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed a model binding issue.
This commit is contained in:
@@ -46,7 +46,7 @@ namespace Orchard.AuditTrail.Drivers {
|
||||
};
|
||||
|
||||
if (updater != null) {
|
||||
if (updater.TryUpdateModel(viewModel, Prefix, new[] { "IsEnabled" }, null)) {
|
||||
if (updater.TryUpdateModel(viewModel, Prefix, null, null)) {
|
||||
foreach (var eventSettingViewModel in viewModel.Categories.SelectMany(x => x.Events)) {
|
||||
var eventSetting = eventSettings.FirstOrDefault(x => x.EventName == eventSettingViewModel.Event);
|
||||
|
||||
|
Reference in New Issue
Block a user