Gets the correct variant logging put in to the audit trail, cleans up audit trail messages to make sense, makes sure audit trail is reloaded when changing variants

This commit is contained in:
Shannon
2018-10-19 13:24:36 +11:00
parent 71fd47f452
commit cc4ee6527d
11 changed files with 136 additions and 70 deletions

View File

@@ -13,7 +13,7 @@ namespace Umbraco.Core.Models.Entities
[DebuggerDisplay("Id: {" + nameof(Id) + "}")]
public abstract class EntityBase : BeingDirtyBase, IEntity
{
#if DEBUG
#if ModelDebug
public Guid InstanceId = Guid.NewGuid();
#endif
@@ -165,7 +165,7 @@ namespace Umbraco.Core.Models.Entities
var unused = Key; // ensure that 'this' has a key, before cloning
var clone = (EntityBase) MemberwiseClone();
#if DEBUG
#if ModelDebug
clone.InstanceId = Guid.NewGuid();
#endif