From 172ea69064dbbc69b3ea8ac7c36c6a93db8337f1 Mon Sep 17 00:00:00 2001 From: slace Date: Mon, 13 Jul 2009 03:55:38 +0000 Subject: [PATCH] DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB Fixing handling of the Newing event [TFS Changeset #56353] --- umbraco/cms/businesslogic/web/Document.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umbraco/cms/businesslogic/web/Document.cs b/umbraco/cms/businesslogic/web/Document.cs index 8525b852a8..682e1527d3 100644 --- a/umbraco/cms/businesslogic/web/Document.cs +++ b/umbraco/cms/businesslogic/web/Document.cs @@ -728,7 +728,7 @@ namespace umbraco.cms.businesslogic.web User = u, ParentId = ParentId }; - Document.Newing(null, newingArgs); + Document.OnNewing(newingArgs); if (newingArgs.Cancel) { return null; @@ -1398,11 +1398,11 @@ order by umbracoNode.sortOrder //TODO: Slace - Document this public static event EventHandler Newing; - protected virtual void OnNewing(DocumentNewingEventArgs e) + protected static void OnNewing(DocumentNewingEventArgs e) { if (Newing != null) { - Newing(this, e); + Newing(null, e); } }