Merge pull request #2346 from umbraco/temp-U4-10738

U4-10738 Deleting a media type folder causes an exception
This commit is contained in:
Robert
2017-12-12 16:02:21 +01:00
committed by GitHub

View File

@@ -377,7 +377,7 @@ namespace Umbraco.Core.Services
repo.Delete(container);
uow.Commit();
deleteEventArgs.CanCancel = false;
uow.Events.Dispatch(DeletedMediaTypeContainer, this, deleteEventArgs);
uow.Events.Dispatch(DeletedMediaTypeContainer, this, deleteEventArgs, "DeletedMediaTypeContainer");
return OperationStatus.Success(evtMsgs);
//TODO: Audit trail ?