diff --git a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/EditInduction/Status.cshtml.cs b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/EditInduction/Status.cshtml.cs index 875b78f2d..e734c674e 100644 --- a/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/EditInduction/Status.cshtml.cs +++ b/TeachingRecordSystem/src/TeachingRecordSystem.SupportUi/Pages/Persons/PersonDetail/EditInduction/Status.cshtml.cs @@ -68,6 +68,10 @@ public async Task OnGetAsync() public async Task OnPostAsync() { + if (!ModelState.IsValid) + { + return this.PageWithErrors(); + } await JourneyInstance!.UpdateStateAsync(state => { state.InductionStatus = InductionStatus;