Skip to content

Commit

Permalink
check that form_data exists when validating fields on submit()
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Mar 26, 2021
1 parent aa49d51 commit a83a84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/SubmitsForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait SubmitsForm

public function submit()
{
$validated_data = $this->validate($this->get_rules())['form_data'];
$validated_data = data_get($this->validate($this->get_rules()), 'form_data', []);
$fields = $this->getFieldsFlat();

//filter out custom-, and relationship-fields
Expand Down

0 comments on commit a83a84a

Please sign in to comment.