Merge pull request #2631 from poornimanayar/U4-8617

check for recursive value
This commit is contained in:
Sebastiaan Janssen
2018-07-30 17:30:47 +02:00
committed by GitHub

View File

@@ -66,8 +66,12 @@ namespace umbraco
if (publishedContent == null)
{
var recursiveVal = GetRecursiveValueLegacy(elements);
_fieldContent = recursiveVal.IsNullOrWhiteSpace() ? _fieldContent : recursiveVal;
if (recursive)
{
var recursiveVal = GetRecursiveValueLegacy(elements);
_fieldContent = recursiveVal.IsNullOrWhiteSpace() ? _fieldContent : recursiveVal;
}
}
//check for published content and get its value using that
@@ -222,4 +226,4 @@ namespace umbraco
}
}
}
}
}