From 0e61d18b9e24a63d5fd1f7d881c05ef4526caefa Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 25 Nov 2016 15:53:08 +0100 Subject: [PATCH] Ensure core handlers are always first no matter what --- .../ObjectResolution/ApplicationEventsResolver.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/ObjectResolution/ApplicationEventsResolver.cs b/src/Umbraco.Core/ObjectResolution/ApplicationEventsResolver.cs index 880eac9591..a90a870c30 100644 --- a/src/Umbraco.Core/ObjectResolution/ApplicationEventsResolver.cs +++ b/src/Umbraco.Core/ObjectResolution/ApplicationEventsResolver.cs @@ -88,9 +88,10 @@ namespace Umbraco.Core.ObjectResolution /// private void OnCollectionResolved(List 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>();