check for recursive value

This commit is contained in:
Poornima Nayar
2018-05-15 19:33:36 +01:00
parent 324cd7e98f
commit deaf26109b
+7 -3
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
}
}
}
}
}