Fixes: U4-4466 6.2-beta - Creating Member Type without Alias results in no viewable Member Types in back office

This commit is contained in:
Shannon
2014-03-20 09:52:31 +11:00
parent ff5dadde53
commit 84dd7dc61a
3 changed files with 23 additions and 3 deletions

View File

@@ -166,8 +166,10 @@ namespace Umbraco.Core.Persistence.Repositories
protected override void PersistNewItem(IMemberType entity)
{
((MemberType)entity).AddingEntity();
ValidateAlias(entity);
((MemberType)entity).AddingEntity();
//By Convention we add 9 stnd PropertyTypes to an Umbraco MemberType
entity.AddPropertyGroup(Constants.Conventions.Member.StandardPropertiesGroupName);
var standardPropertyTypes = Constants.Conventions.Member.GetStandardPropertyTypeStubs();