Ensure core handlers are always first no matter what

This commit is contained in:
Shannon
2016-11-25 15:53:08 +01:00
parent 531fa9f25a
commit 0e61d18b9e

View File

@@ -88,9 +88,10 @@ namespace Umbraco.Core.ObjectResolution
/// </remarks>
private void OnCollectionResolved(List<IApplicationEventHandler> handlers)
{
if (FilterCollection == null) return;
FilterCollection(handlers);
if (FilterCollection != null)
{
FilterCollection(handlers);
}
//find all of the core handlers and their weight, remove them from the main list
var coreItems = new List<Tuple<IApplicationEventHandler, int>>();