Add missing id to unique naming overload

This commit is contained in:
Morten Christensen
2013-07-04 12:31:10 +02:00
parent e34c857f6c
commit b1285fa7e3

View File

@@ -256,7 +256,7 @@ namespace Umbraco.Core.Persistence.Repositories
((Models.Media)entity).UpdatingEntity();
//Ensure unique name on the same level
entity.Name = EnsureUniqueNodeName(entity.ParentId, entity.Name);
entity.Name = EnsureUniqueNodeName(entity.ParentId, entity.Name, entity.Id);
//Look up parent to get and set the correct Path and update SortOrder if ParentId has changed
if (((ICanBeDirty)entity).IsPropertyDirty("ParentId"))