Cleaning up the log/audit trail usage, removing duplicate and unecessary entries and adding new cols
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Umbraco.Core.Models
|
||||
/// <param name="comment"></param>
|
||||
/// <param name="type"></param>
|
||||
/// <param name="userId"></param>
|
||||
public AuditItem(int objectId, string comment, AuditType type, int userId)
|
||||
public AuditItem(int objectId, AuditType type, int userId, string entityType, string comment = null, string parameters = null)
|
||||
{
|
||||
DisableChangeTracking();
|
||||
|
||||
@@ -19,11 +19,19 @@ namespace Umbraco.Core.Models
|
||||
Comment = comment;
|
||||
AuditType = type;
|
||||
UserId = userId;
|
||||
EntityType = entityType;
|
||||
Parameters = parameters;
|
||||
|
||||
EnableChangeTracking();
|
||||
}
|
||||
|
||||
public string Comment { get; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public string EntityType { get; }
|
||||
/// <inheritdoc/>
|
||||
public string Parameters { get; }
|
||||
|
||||
public AuditType AuditType { get; }
|
||||
public int UserId { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user