Skip to content

Commit

Permalink
Merge pull request #1040 from DFE-Digital/feature/158735-Associate-FAM
Browse files Browse the repository at this point in the history
Feature/158735 associate fam
  • Loading branch information
paullocknimble authored Apr 15, 2024
2 parents 45188c6 + 82879c0 commit 3fef706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public async Task<IActionResult> OnPostAsync(string urn, string ukprn, string ha
await _academyConversionProjectRepository.CreateFormAMatProject(CreateProjectMapper.MapFormAMatToDto(establishment, trust, hasSchoolApplied, hasPreferredTrust));
}

bool _isFormAMAT = isFormAMat.ToLower().Equals("yes");
bool _isFormAMAT = !string.IsNullOrEmpty(isFormAMat) && isFormAMat.ToLower().Equals("yes");

if (_isFormAMAT && proposedTrustName == null)
{
Expand Down

0 comments on commit 3fef706

Please sign in to comment.