From 2441980f61cfac0e11b1acd1fcad563788d78f9e Mon Sep 17 00:00:00 2001 From: plockwood Date: Mon, 25 Nov 2024 11:54:53 +0000 Subject: [PATCH] fix for null trust ukprn --- .../Repositories/ConversionProjectRepository.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dfe.Academies.Academisation.Data/Repositories/ConversionProjectRepository.cs b/Dfe.Academies.Academisation.Data/Repositories/ConversionProjectRepository.cs index 0b4b764cc..32b2e4925 100644 --- a/Dfe.Academies.Academisation.Data/Repositories/ConversionProjectRepository.cs +++ b/Dfe.Academies.Academisation.Data/Repositories/ConversionProjectRepository.cs @@ -98,7 +98,8 @@ private static IQueryable FilterGroupedProjects(IQueryable que string.IsNullOrEmpty(p.Details.SchoolPhase) || string.IsNullOrEmpty(p.Details.SchoolType) || // we need projects that have a trust associated that aren't form a mat that require a trust ukprn - (p.Details.TrustUkprn == null && p.Details.IsFormAMat == false && p.Details.TrustReferenceNumber != null)) + (p.Details.TrustUkprn == null && p.Details.IsFormAMat == null && p.Details.TrustReferenceNumber != null) + && p.DeletedAt == null) .ToListAsync(); return createdProjectState;