From ba0822392c49cf2595dad008ca5452e5a3c43cc7 Mon Sep 17 00:00:00 2001 From: plockwood Date: Thu, 26 Sep 2024 17:00:52 +0100 Subject: [PATCH] fix for validation that is not required on conversion details page --- .../Pages/UpdateAcademyConversionProjectPageModel.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/UpdateAcademyConversionProjectPageModel.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/UpdateAcademyConversionProjectPageModel.cs index 394b8cc27..40dc02a4f 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/UpdateAcademyConversionProjectPageModel.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Pages/UpdateAcademyConversionProjectPageModel.cs @@ -37,12 +37,6 @@ public override async Task OnPostAsync(int id) bool schoolAndTrustInformationSectionComplete = AcademyConversionProject.SchoolAndTrustInformationSectionComplete != null && AcademyConversionProject.SchoolAndTrustInformationSectionComplete.Value; - if (schoolAndTrustInformationSectionComplete && !Project.HeadTeacherBoardDate.HasValue) - { - _errorService.AddError( - $"/task-list/{id}/confirm-school-trust-information-project-dates/advisory-board-date?return=%2FTaskList%2FSchoolAndTrustInformation/ConfirmSchoolAndTrustInformation&fragment=advisory-board-date", - "Set an Advisory board date before you generate your project template"); - } if (AcademyConversionProject.LocalAuthorityInformationTemplateSentDate.HasValue && AcademyConversionProject.LocalAuthorityInformationTemplateReturnedDate.HasValue &&