un-does the tag export/import, instead need to look at the internal of a simple publish (without save) to see if tags get written or not.

This commit is contained in:
Shannon
2014-06-30 17:05:34 +10:00
parent a66670263f
commit 59116fc7fa
2 changed files with 58 additions and 58 deletions

View File

@@ -270,17 +270,17 @@ namespace Umbraco.Core.Services
//set value as per normal
content.SetValue(propertyTypeAlias, propertyValue);
}
else
{
//check if this exists in tagProperties
var hasTags = tagProperties.XPathSelectElement(string.Format("//TagProperty[@docId=\"{0}\" and @propertyAlias=\"{1}\"]", id, propertyType.Alias));
if (hasTags != null)
{
var tags = JsonConvert.DeserializeObject<string[]>(hasTags.Value);
content.SetTags(propertyTypeAlias, tags, true, hasTags.Attribute("group").Value);
}
//else
//{
// //check if this exists in tagProperties
// var hasTags = tagProperties.XPathSelectElement(string.Format("//TagProperty[@docId=\"{0}\" and @propertyAlias=\"{1}\"]", id, propertyType.Alias));
// if (hasTags != null)
// {
// var tags = JsonConvert.DeserializeObject<string[]>(hasTags.Value);
// content.SetTags(propertyTypeAlias, tags, true, hasTags.Attribute("group").Value);
// }
}
//}
}
else