Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/Http/Requests/ProfileUpdateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function informationRules(): array
'data.*.data.url' => 'nullable|url',
'data.*.data.secondary_url' => 'nullable|url',
'data.*.data.tertiary_url' => 'nullable|url',
'data.*.data.orc_id' => 'nullable|regex:/^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]$/',
'data.*.data.orc_id' => 'nullable|required_if_accepted:data.*.data.orc_id_managed|regex:/^[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{3}[0-9X]$/',
'data.*.data.orc_id_managed' => 'required|boolean',
'data.*.data.fancy_header' => 'required|boolean',
'data.*.data.fancy_header_right' => 'required|boolean',
Expand All @@ -62,7 +62,8 @@ public function messages()
{
return [
'data.*.image.max' => $this->uploadedImageMessages('max'),
'data.*.id.exists' => 'Some of the profile entries you are attempting to update might have been modified since you loaded this page. Please reload this page and try again.'
'data.*.id.exists' => 'Some of the profile entries you are attempting to update might have been modified since you loaded this page. Please reload this page and try again.',
'data.*.data.orc_id.required_if_accepted' => 'The ORCID field is required when Auto-update Publications is enabled.',
];
}

Expand Down
Loading