mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix issue where an array is passed instead of a string.
This commit is contained in:
@@ -416,7 +416,9 @@ class AutoCompleteController extends Controller
|
|||||||
$return = array_values(
|
$return = array_values(
|
||||||
array_unique(
|
array_unique(
|
||||||
array_filter(
|
array_filter(
|
||||||
$return, function (string $value) use ($search) {
|
$return, function (array $array) use ($search) {
|
||||||
|
$value = $array['name'];
|
||||||
|
|
||||||
return !(false === stripos($value, $search));
|
return !(false === stripos($value, $search));
|
||||||
}, ARRAY_FILTER_USE_BOTH
|
}, ARRAY_FILTER_USE_BOTH
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user