Fix method

This commit is contained in:
James Cole 2022-10-01 07:20:26 +02:00
parent 93c83fbe7a
commit 5c471059f3
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -45,7 +45,7 @@ class AutocompleteRequest extends FormRequest
if ('' !== $types) { if ('' !== $types) {
$array = explode(',', $types); $array = explode(',', $types);
} }
$limit = $this->integer('limit'); $limit = $this->convertInteger('limit');
$limit = 0 === $limit ? 10 : $limit; $limit = 0 === $limit ? 10 : $limit;
// remove 'initial balance' from allowed types. its internal // remove 'initial balance' from allowed types. its internal