From 480bd39687840b396e79604d73fca86d451f5525 Mon Sep 17 00:00:00 2001 From: "NielsHartvig@UMBRACORATI.localdomain" Date: Fri, 18 Jan 2013 12:56:30 -0100 Subject: [PATCH] Fixes U4-1437 Contact form in business starter kit doesn't work --- src/umbraco.cms/businesslogic/macro/Macro.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/umbraco.cms/businesslogic/macro/Macro.cs b/src/umbraco.cms/businesslogic/macro/Macro.cs index 1216c95f42..a69aff9cc5 100644 --- a/src/umbraco.cms/businesslogic/macro/Macro.cs +++ b/src/umbraco.cms/businesslogic/macro/Macro.cs @@ -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"));