Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Correctly validate inputs with spaces in them
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam-PVTL committed Apr 7, 2020
1 parent 0bef478 commit f706dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/EnquiryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ protected function buildValidation($form)
}

if ($input->required) {
$validationArray[$input->label] = 'required' . $additionalValidation;
$validationArray[str_replace(' ', '_', $input->label)] = 'required' . $additionalValidation;
}
}

Expand Down

0 comments on commit f706dee

Please sign in to comment.