DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB
Fixing handling of the Newing event [TFS Changeset #56353]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user