Skip to content
Snippets Groups Projects
Unverified Commit aa564440 authored by Maxime FRIESS's avatar Maxime FRIESS :blue_heart:
Browse files

[participations] Fixed invalid table name in validation

parent 02185815
Branches
Tags
No related merge requests found
Pipeline #69316 passed with stages
in 4 minutes and 36 seconds
......@@ -42,12 +42,12 @@ class ParticipationsController extends PaymentController
[
'person_id' => [
'required',
Rule::unique('event_person', 'person_id')->where('event_id', $request->get('event_id', null)),
Rule::unique('event_people', 'person_id')->where('event_id', $request->get('event_id', null)),
'exists:people,id'
],
'event_id' => [
'required',
Rule::unique('event_person', 'evenT_id')->where('person_id', $request->get('person_id', null)),
Rule::unique('event_people', 'evenT_id')->where('person_id', $request->get('person_id', null)),
'exists:events,id'
],
]
......@@ -62,12 +62,12 @@ class ParticipationsController extends PaymentController
[
'person_id' => [
'required',
Rule::unique('event_person', 'person_id')->where('event_id', $request->get('event_id', null)),
Rule::unique('event_people', 'person_id')->where('event_id', $request->get('event_id', null)),
'exists:people,id'
],
'event_id' => [
'required',
Rule::unique('event_person', 'evenT_id')->where('person_id', $request->get('person_id', null)),
Rule::unique('event_people', 'evenT_id')->where('person_id', $request->get('person_id', null)),
'exists:events,id'
],
],
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment