Fixed: Validate subscription id

This commit is contained in:
Philipp Lang 2021-07-11 22:34:21 +02:00
parent 4ba63d6391
commit b7d292289a
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class MemberRequest extends FormRequest
return [ return [
'first_activity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'), 'first_activity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'),
'first_subactivity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'), 'first_subactivity_id' => Rule::requiredIf(fn() => $this->method() == 'POST'),
'fee_id' => Rule::requiredIf(function() { 'subscription_id' => Rule::requiredIf(function() {
if ($this->method() != 'POST') { if ($this->method() != 'POST') {
return false; return false;
} }