Enhance implementation of ObservableDictionary so we can re-use this in more places, changes CultureNameCollection to ObservableDictionary, fixes issue with dirty tracking changed property type collections ... this was working by pure fluke before! Fixes more tests.
This commit is contained in:
@@ -836,7 +836,7 @@ namespace Umbraco.Core.Services.Implement
|
||||
|
||||
//track the cultures that have changed
|
||||
var culturesChanging = content.ContentType.VariesByCulture()
|
||||
? string.Join(",", content.CultureNames.Where(x => x.IsDirty()).Select(x => x.Culture))
|
||||
? string.Join(",", content.CultureNames.Where(x => x.Value.IsDirty()).Select(x => x.Key))
|
||||
: null;
|
||||
//TODO: Currently there's no way to change track which variant properties have changed, we only have change
|
||||
// tracking enabled on all values on the Property which doesn't allow us to know which variants have changed.
|
||||
@@ -1069,7 +1069,7 @@ namespace Umbraco.Core.Services.Implement
|
||||
}
|
||||
else
|
||||
{
|
||||
culturesChanging = string.Join(",", content.PublishNames.Where(x => x.IsDirty()).Select(x => x.Culture));
|
||||
culturesChanging = string.Join(",", content.PublishNames.Where(x => x.Value.IsDirty()).Select(x => x.Key));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1852,7 +1852,7 @@ namespace Umbraco.Core.Services.Implement
|
||||
|
||||
//track the cultures changing for auditing
|
||||
var culturesChanging = content.ContentType.VariesByCulture()
|
||||
? string.Join(",", content.CultureNames.Where(x => x.IsDirty()).Select(x => x.Culture))
|
||||
? string.Join(",", content.CultureNames.Where(x => x.Value.IsDirty()).Select(x => x.Key))
|
||||
: null;
|
||||
//TODO: Currently there's no way to change track which variant properties have changed, we only have change
|
||||
// tracking enabled on all values on the Property which doesn't allow us to know which variants have changed.
|
||||
|
||||
Reference in New Issue
Block a user