From 4aa53eb71ef1e87db9c73b429a3e708f55b6f84e Mon Sep 17 00:00:00 2001 From: nairdo Date: Fri, 13 Oct 2023 16:56:51 -0700 Subject: [PATCH] + (Engagement) Fixed the Sign-up Finder block to only show active schedules when the Display Named Schedule Filter is enabled. (Fixes #5631) --- Rock.Blocks/Engagement/SignUp/SignUpFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rock.Blocks/Engagement/SignUp/SignUpFinder.cs b/Rock.Blocks/Engagement/SignUp/SignUpFinder.cs index a589578c619..b205333adbd 100644 --- a/Rock.Blocks/Engagement/SignUp/SignUpFinder.cs +++ b/Rock.Blocks/Engagement/SignUp/SignUpFinder.cs @@ -602,7 +602,7 @@ private List GetNamedScheduleFilterItems( RockContext rockContext ) var rootScheduleCategoryId = CategoryCache.GetId( rootScheduleCategoryGuid.Value ); if ( rootScheduleCategoryId.HasValue ) { - query = query.Where( a => a.CategoryId.HasValue && a.CategoryId.Value == rootScheduleCategoryId.Value ); + query = query.Where( a => a.CategoryId.HasValue && a.CategoryId.Value == rootScheduleCategoryId.Value && a.IsActive ); } }