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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user