mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
More robust handling of audit trail event records whose providers are no longer enabled.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
var eventData = (IDictionary<string, object>) Model.EventData;
|
||||
var contentTypeName = eventData.Get<string>("ContentTypeName");
|
||||
var contentPartName = eventData.Get<string>("ContentPartName");
|
||||
var diff = (DiffDictionary<string, string>)Model.Diff;
|
||||
var diff = (DiffDictionary<string, string>)Model.Diff ?? new DiffDictionary<string, string>();
|
||||
}
|
||||
<section class="audittrail-contenttype-eventsummary">
|
||||
@T("Settings for the content part {0} attached to the content type {1} were changed:", Html.ContentPartEditLink(contentPartName), Html.ContentTypeEditLink(contentTypeName))
|
||||
|
Reference in New Issue
Block a user