Skip to content

Commit

Permalink
Merge pull request #1187 from DFE-Digital/bugfix/advisory-board-date-…
Browse files Browse the repository at this point in the history
…validation-conversion-details

fix for validation that is not required on conversion details page
  • Loading branch information
paullocknimble authored Sep 27, 2024
2 parents 3ac88ac + ba08223 commit 0adbc69
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ public override async Task<IActionResult> 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 &&
Expand Down

0 comments on commit 0adbc69

Please sign in to comment.