Fixes U4-1437 Contact form in business starter kit doesn't work

This commit is contained in:
NielsHartvig@UMBRACORATI.localdomain
2013-01-18 12:56:30 -01:00
parent 1bd4cbdb99
commit 480bd39687

View File

@@ -333,6 +333,10 @@ namespace umbraco.cms.businesslogic.macro
m.Xslt = xmlHelper.GetNodeValue(n.SelectSingleNode("xslt"));
m.RefreshRate = int.Parse(xmlHelper.GetNodeValue(n.SelectSingleNode("refreshRate")));
// we need to validate if the usercontrol is missing the tilde prefix requirement introduced in v6
if (String.IsNullOrEmpty(m.Assembly) && !String.IsNullOrEmpty(m.Type) && !m.Type.StartsWith("~"))
m.Type = "~/" + m.Type;
if (n.SelectSingleNode("scriptingFile") != null)
m.ScriptingFile = xmlHelper.GetNodeValue(n.SelectSingleNode("scriptingFile"));