Fixes: U4-4777 Preview with related links property editor doesn't work - this is just a temp fix, ensures that the YSOD is not created but doesn't fix the way preview pages are created.

This commit is contained in:
Shannon
2014-04-29 13:46:32 +10:00
parent 86e18ef89d
commit dadf063ad5

View File

@@ -10,17 +10,6 @@ namespace umbraco.editorControls.relatedlinks
public class RelatedLinksData : umbraco.cms.businesslogic.datatype.DefaultData
{
public RelatedLinksData(umbraco.cms.businesslogic.datatype.BaseDataType DataType) : base(DataType) { }
public override System.Xml.XmlNode ToXMl(System.Xml.XmlDocument data)
{
if (this.Value != null && !String.IsNullOrEmpty(this.Value.ToString())) {
XmlDocument xd = new XmlDocument();
xd.LoadXml(this.Value.ToString());
return data.ImportNode(xd.DocumentElement, true);
} else {
return base.ToXMl(data);
}
}
}
}