Take care of FIXMEs

This commit is contained in:
Stephan
2013-09-23 13:08:45 +02:00
parent c3caf7ff04
commit eb4317a9c1
5 changed files with 19 additions and 14 deletions

View File

@@ -329,7 +329,10 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
//is cached so will be quicker to look up.
if (dd.Properties.Any(x => x.PropertyTypeAlias == UmbracoContentIndexer.NodeTypeAliasFieldName))
{
// fixme - is it OK to use DataValue here?
// so in dd.Properties, there is an IPublishedProperty with property type alias "__NodeTypeAlias" and
// that special property would contain the node type alias, which we use to get "aliases & names". That
// special property is going to be a PropertyResult (with ObjectValue == DataValue) and we
// want its value in the most simple way = it is OK to use DataValue here.
var aliasesAndNames = ContentType.GetAliasesAndNames(dd.Properties.First(x => x.PropertyTypeAlias.InvariantEquals(UmbracoContentIndexer.NodeTypeAliasFieldName)).DataValue.ToString());
if (aliasesAndNames != null)
{