U4-4775 creating new member group shows error message in dialog...

This commit is contained in:
Sebastiaan Janssen
2014-05-01 11:45:14 +02:00
parent 851961ef2b
commit e858f4ff1e
2 changed files with 3 additions and 3 deletions

View File

@@ -118,8 +118,7 @@ namespace Umbraco.Core
{
foreach (TItem item in items)
{
if(item != null)
action(item);
action(item);
}
}

View File

@@ -120,7 +120,8 @@ namespace Umbraco.Core.Persistence.Repositories
group.AddingEntity();
var dto = _modelFactory.BuildDto(group);
var o = Database.IsNew(dto) ? Convert.ToInt32(Database.Insert(dto)) : Database.Update(dto);
group.Id = dto.NodeId; //Set Id on entity to ensure an Id is set
//Update with new correct path
dto.Path = string.Concat("-1,", dto.NodeId);
Database.Update(dto);