Fixes: U4-4395 YSOD when creating membergroup

This commit is contained in:
Shannon
2014-03-12 15:08:55 +11:00
parent c8ff708a43
commit d89205abaf
2 changed files with 7 additions and 3 deletions

View File

@@ -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();
}

View File

@@ -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>