Merge remote-tracking branch 'origin/dev-v7' into dev-v7.7

This commit is contained in:
Sebastiaan Janssen
2017-09-14 16:15:43 +02:00
6 changed files with 9 additions and 4 deletions

View File

@@ -93,6 +93,10 @@ namespace Umbraco.Core.Models
//NOTE: Consider checking type before value is set: item.PropertyType.DataTypeId == property.PropertyType.DataTypeId
//Transfer the existing value to the new property
var property = this[key];
if (item.Id == 0 && property.Id != 0)
{
item.Id = property.Id;
}
if (item.Value == null && property.Value != null)
{
item.Value = property.Value;