ensure the culture is bumped if a property of that culture is modified, fixes up the AdjustDates method and tests

This commit is contained in:
Shannon
2019-02-06 23:51:12 +11:00
parent 5b33416b7b
commit b95b02d0c0
4 changed files with 23 additions and 26 deletions

View File

@@ -302,6 +302,8 @@ namespace Umbraco.Core.Models
if (Properties.Contains(propertyTypeAlias))
{
Properties[propertyTypeAlias].SetValue(value, culture, segment);
//bump the culture to be flagged for updating
this.TouchCulture(culture);
return;
}
@@ -312,6 +314,9 @@ namespace Umbraco.Core.Models
var property = propertyType.CreateProperty();
property.SetValue(value, culture, segment);
Properties.Add(property);
//bump the culture to be flagged for updating
this.TouchCulture(culture);
}
#endregion