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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user