Skip to content

Commit

Permalink
Merge pull request #331 from ministryofjustice/hotfix/assessment-just…
Browse files Browse the repository at this point in the history
…ification-length

Add 1000 character limit to PQA submission justification
  • Loading branch information
carlsixsmith-moj authored Dec 3, 2024
2 parents dddbdc0 + 0238719 commit 8d3f7ac
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
For="@(() => Model.Note)"
Lines="5"
Class="mt-4"
/>

Immediate
MaxLength="ValidationConstants.NotesLength" />
<MudText Class="ml-2">Characters: @(Model.Note?.Length ?? 0) / @ValidationConstants.NotesLength</MudText>
</MudForm>

</DialogContent>
Expand Down Expand Up @@ -75,7 +76,7 @@
}

RuleFor(x => x.Note)
.MaximumLength(250)
.MaximumLength(ValidationConstants.NotesLength)
.Matches(ValidationConstants.Notes)
.WithMessage(string.Format(ValidationConstants.NotesMessage, "Note"));
}
Expand All @@ -89,4 +90,5 @@
};

}

}

0 comments on commit 8d3f7ac

Please sign in to comment.