Fixes for assigned_user_id and group_id not sticking to subscriptions

This commit is contained in:
David Bomba 2021-04-06 08:21:55 +10:00
parent b1e6325ef8
commit 9cb8e865fc
2 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,8 @@ class StoreSubscriptionRequest extends Request
{ {
$input = $this->all(); $input = $this->all();
$input = $this->decodePrimaryKeys($input);
$this->replace($input); $this->replace($input);
} }
} }

View File

@ -42,4 +42,13 @@ class UpdateSubscriptionRequest extends Request
return $this->globalRules($rules); return $this->globalRules($rules);
} }
protected function prepareForValidation()
{
$input = $this->all();
$input = $this->decodePrimaryKeys($input);
$this->replace($input);
}
} }