Fix for U4-2384. Author not changed to current user when a node is copied.

This commit is contained in:
Jeremy Pyne
2013-06-18 09:35:33 -04:00
parent e0a483ca48
commit f5121bd183

View File

@@ -862,7 +862,8 @@ namespace Umbraco.Core.Services
var uow = _uowProvider.GetUnitOfWork();
using (var repository = _repositoryFactory.CreateContentRepository(uow))
{
content.WriterId = userId;
copy.CreatorId = userId;
content.WriterId = userId; // Typo?
repository.AddOrUpdate(copy);
uow.Commit();