Merge pull request #15 from pynej/master

Fix for U4-2384. Author not changed to current user when a node is copied.
This commit is contained in:
Sebastiaan Janssen
2013-06-19 05:06:23 -07:00

View File

@@ -862,7 +862,10 @@ namespace Umbraco.Core.Services
var uow = _uowProvider.GetUnitOfWork();
using (var repository = _repositoryFactory.CreateContentRepository(uow))
{
content.WriterId = userId;
// Update the create author and last edit author
copy.CreatorId = userId;
copy.WriterId = userId;
repository.AddOrUpdate(copy);
uow.Commit();