Fixes: U4-4395 YSOD when creating membergroup
This commit is contained in:
@@ -121,10 +121,11 @@ namespace Umbraco.Core.Persistence.Repositories
|
||||
var dto = _modelFactory.BuildDto(group);
|
||||
var o = Database.IsNew(dto) ? Convert.ToInt32(Database.Insert(dto)) : Database.Update(dto);
|
||||
|
||||
//Update with new correct path
|
||||
//Update with new correct path and id
|
||||
dto.Path = string.Concat("-1,", dto.NodeId);
|
||||
Database.Update(dto);
|
||||
|
||||
//assign to entity
|
||||
group.Id = o;
|
||||
group.ResetDirtyProperties();
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,10 @@ namespace Umbraco.Web.Install
|
||||
Directory.Move(IOHelper.MapPath(SystemDirectories.Install), IOHelper.MapPath("~/app_data/temp/install_backup"));
|
||||
|
||||
if (Directory.Exists(IOHelper.MapPath("~/Areas/UmbracoInstall")))
|
||||
Directory.Delete(IOHelper.MapPath("~/Areas/UmbracoInstall"));
|
||||
{
|
||||
Directory.Delete(IOHelper.MapPath("~/Areas/UmbracoInstall"), true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user