Permalink
Browse files

Fix error in ContainerSettings editor (#8079)

  • Loading branch information...
protoncm authored and sebastienros committed Jul 12, 2018
1 parent 5b5eda6 commit 28c547ba7971d6aeb783e068feae798fe5d776ec
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Orchard.Web/Core/Containers/Settings/ContainerSettings.cs
@@ -118,7 +118,8 @@ public class ContainerSettingsHooks : ContentDefinitionEditorEventsBase {
yield break;
var viewModel = new ContainerTypePartSettingsViewModel {
AvailableItemContentTypes = _containerService.GetContainableTypes().ToList()
AvailableItemContentTypes = _containerService.GetContainableTypes().ToList(),
ListViewProviders = _listViewService.Providers.ToList()
};
updateModel.TryUpdateModel(viewModel, "ContainerTypePartSettingsViewModel", null, new[] { "AvailableItemContentTypes" });
builder.WithSetting("ContainerTypePartSettings.ItemsShownDefault", viewModel.ItemsShownDefault.ToString());

0 comments on commit 28c547b

Please sign in to comment.