Skip to content

Commit

Permalink
increased max-length of description to 400 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
papandrk committed Oct 31, 2024
1 parent 32ffe36 commit a021319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function create(): View {
public function store(Request $request) {
$validated = $request->validate([ // bookmark2
'problem-title' => ['required', 'string', 'max:100'],
'problem-description' => ['required', 'string', 'max:200'],
'problem-description' => ['required', 'string', 'max:400'],
'problem-status' => ['required'], // bookmark2
'problem-default-language' => ['required'], // bookmark2
'problem-slug' => ['required', 'unique:crowd_sourcing_project_problems,slug'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class="form-control {{ $errors->has('problem-description') ? 'is-invalid' : '' }
required
rows="6"
placeholder="Problem Description"
maxlength="200"
maxlength="400"
>{{-- {{ old('problem-description') ? old('problem-description') : $viewModel->problem->defaultTranslation->description }} bookmark2 --}}{{ old('problem-description') ? old('problem-description') : '' }}</textarea>
<div class="invalid-feedback"><strong>{{ $errors->first('problem-description') }}</strong></div>
</div>
Expand Down

0 comments on commit a021319

Please sign in to comment.