ensures new member types have correct default icon
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -226,7 +226,7 @@ namespace umbraco.cms.businesslogic.member
|
||||
{
|
||||
Level = 1,
|
||||
Name = Text,
|
||||
Icon = "member.gif",
|
||||
Icon = "icon-user",
|
||||
Alias = alias
|
||||
};
|
||||
ApplicationContext.Current.Services.MemberTypeService.Save(mt);
|
||||
|
||||
Reference in New Issue
Block a user