DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB

Fixing handling of the Newing event

[TFS Changeset #56353]
This commit is contained in:
slace
2009-07-13 03:55:38 +00:00
parent 4448fc216b
commit 172ea69064

View File

@@ -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<DocumentNewingEventArgs> Newing;
protected virtual void OnNewing(DocumentNewingEventArgs e)
protected static void OnNewing(DocumentNewingEventArgs e)
{
if (Newing != null)
{
Newing(this, e);
Newing(null, e);
}
}