Slight update
This commit is contained in:
parent
4f265f44e2
commit
93446ca30d
1 changed files with 2 additions and 0 deletions
|
@ -280,10 +280,12 @@ public class AdminCommands
|
||||||
foreach (KeyValuePair<ulong, Interviewer.ValidatedInterviewQuestion> interviewRoot in interview)
|
foreach (KeyValuePair<ulong, Interviewer.ValidatedInterviewQuestion> interviewRoot in interview)
|
||||||
{
|
{
|
||||||
interviewRoot.Value.Validate(ref errors, out int summaryCount, out int summaryMaxLength);
|
interviewRoot.Value.Validate(ref errors, out int summaryCount, out int summaryMaxLength);
|
||||||
|
|
||||||
if (summaryCount > 25)
|
if (summaryCount > 25)
|
||||||
{
|
{
|
||||||
errors.Add("A summary cannot contain more than 25 fields, but you have " + summaryCount + " fields in one of your interview branches.");
|
errors.Add("A summary cannot contain more than 25 fields, but you have " + summaryCount + " fields in one of your interview branches.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (summaryMaxLength >= 6000)
|
if (summaryMaxLength >= 6000)
|
||||||
{
|
{
|
||||||
errors.Add("A summary cannot contain more than 6000 characters, but one of your branches has the possibility of its summary reaching " + summaryMaxLength + " characters.");
|
errors.Add("A summary cannot contain more than 6000 characters, but one of your branches has the possibility of its summary reaching " + summaryMaxLength + " characters.");
|
||||||
|
|
Loading…
Reference in a new issue