mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed exception in model binding, causing event settings to never be persisted.
This commit is contained in:
@@ -42,11 +42,11 @@ namespace Orchard.AuditTrail.Drivers {
|
||||
select new AuditTrailCategorySettingsViewModel {
|
||||
Category = categoryDescriptor.Category,
|
||||
Name = categoryDescriptor.Name,
|
||||
Events = eventsQuery.ToArray()
|
||||
Events = eventsQuery.ToList()
|
||||
};
|
||||
|
||||
var viewModel = new AuditTrailSettingsViewModel {
|
||||
Categories = categoriesQuery.ToArray()
|
||||
Categories = categoriesQuery.ToList()
|
||||
};
|
||||
|
||||
if (updater != null) {
|
||||
|
@@ -5,6 +5,6 @@ namespace Orchard.AuditTrail.ViewModels {
|
||||
public class AuditTrailCategorySettingsViewModel {
|
||||
public string Category { get; set; }
|
||||
public LocalizedString Name { get; set; }
|
||||
public IEnumerable<AuditTrailEventSettingsViewModel> Events { get; set; }
|
||||
public IList<AuditTrailEventSettingsViewModel> Events { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user