From 3fb09136cf78c28d2ef54955d35c9f87c1807850 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 13 Aug 2019 18:38:15 +0200 Subject: [PATCH] Fix #2410 --- app/Http/Controllers/Json/AutoCompleteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Json/AutoCompleteController.php b/app/Http/Controllers/Json/AutoCompleteController.php index 4a912f1443..8a42e2e3ab 100644 --- a/app/Http/Controllers/Json/AutoCompleteController.php +++ b/app/Http/Controllers/Json/AutoCompleteController.php @@ -214,7 +214,7 @@ class AutoCompleteController extends Controller $array = array_merge($array, $limited->toArray()); foreach ($array as $index => $item) { // give another key for consistency - $array[$index]['name'] = sprintf('#%d: %s', $item['id'], $item['description']); + $array[$index]['name'] = sprintf('#%d: %s', $item['transaction_group_id'], $item['description']); }