Skip to content

Commit

Permalink
Add temporary fix for issue umco#12
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan White committed Oct 15, 2019
1 parent 9433de5 commit fc46b1c
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ public override object ConvertDataToSource(PublishedPropertyType propertyType, o
var elements = XElement.Parse(data);
if (elements != null && elements.HasElements)
{
items.AddRange(elements.XPathSelectElements("value").Select(x => x.Value));
// duct tape solution. Pending: https://github.com/umco/umbraco-property-list/issues/12
if (elements.XPathSelectElement("./value/values") != null)
{
items.AddRange(elements.XPathSelectElements("./value/values"));
}
else
{
items.AddRange(elements.XPathSelectElements("./value").Select(x => x.Value));
}
}
}

Expand Down

0 comments on commit fc46b1c

Please sign in to comment.