Skip to content
Permalink
Browse files

Fixes: U4-7815 List view - bug when custom list view has been created.

  • Loading branch information...
madsrasmussen committed Jan 26, 2016
1 parent 7cdaacf commit fd58c3b3c6b6f0358dd75d03488e323735f70bfb
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Umbraco.Web/Models/Mapping/ContentTypeModelMapper.cs
@@ -152,9 +152,9 @@ public override void ConfigureMappings(IConfiguration config, ApplicationContext
//default listview
dest.ListViewEditorName = Constants.Conventions.DataTypes.ListViewPrefix + "Content";

if (string.IsNullOrEmpty(source.Name) == false)
if (string.IsNullOrEmpty(source.Alias) == false)
{
var name = Constants.Conventions.DataTypes.ListViewPrefix + source.Name;
var name = Constants.Conventions.DataTypes.ListViewPrefix + source.Alias;
if (applicationContext.Services.DataTypeService.GetDataTypeDefinitionByName(name) != null)
dest.ListViewEditorName = name;
}

0 comments on commit fd58c3b

Please sign in to comment.
You can’t perform that action at this time.