ensures new member types have correct default icon

This commit is contained in:
Shannon
2014-10-28 12:17:05 +10:00
parent b6d0b46332
commit 2babb2373d
2 changed files with 7 additions and 1 deletions

View File

@@ -170,6 +170,12 @@ namespace Umbraco.Core.Persistence.Repositories
((MemberType)entity).AddingEntity();
//set a default icon if one is not specified
if (entity.Icon.IsNullOrWhiteSpace())
{
entity.Icon = "icon-user";
}
//By Convention we add 9 stnd PropertyTypes to an Umbraco MemberType
entity.AddPropertyGroup(Constants.Conventions.Member.StandardPropertiesGroupName);
var standardPropertyTypes = Constants.Conventions.Member.GetStandardPropertyTypeStubs();