Merge pull request #2631 from poornimanayar/U4-8617
check for recursive value
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user