-
Notifications
You must be signed in to change notification settings - Fork 58
Set limit for the MVP contributions #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set limit for the MVP contributions #558
Conversation
&& model.ContributionDate.Value >= model.CurrentSelection?.ApplicationsEnd.AddMonths(-_options.TimeFrameMonths) | ||
&& model.ContributionDate.Value <= model.CurrentSelection.ApplicationsEnd) | ||
{ | ||
if (model.CurrentApplication?.Contributions.Count >= 30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this value configurable on a Sitecore Item
{ | ||
model.NextStep = ApplicationStep.Contributions; | ||
await LoadProducts(model); | ||
ModelState.AddModelError(string.Empty, "You have reached the limit of 30 contributions. Please review your list and select only top 30 contributions."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this text content editable
{ | ||
if (model.CurrentApplication?.Contributions.Count < 3) | ||
{ | ||
ModelState.AddModelError(string.Empty, "You must add atleast 3 contributions to submit your application."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this text content editable
{ | ||
if (model.IsNavigation.HasValue && model.IsNavigation.Value) | ||
{ | ||
if (model.CurrentApplication?.Contributions.Count < 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this value configurable on a Sitecore Item.
Description / Motivation
How Has This Been Tested?
Types of changes
Checklist:
#556