Fix for U4-2384. Author not changed to current user when a node is copied.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user