From f279877cd666f262ac2a433a9c8f39e998a4a50c Mon Sep 17 00:00:00 2001 From: jekkos Date: Tue, 17 Sep 2024 00:32:10 +0200 Subject: [PATCH] Fix customer suggestion (#4031) --- app/Controllers/Customers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Customers.php b/app/Controllers/Customers.php index 6dd78bf28..a3e76d762 100644 --- a/app/Controllers/Customers.php +++ b/app/Controllers/Customers.php @@ -125,7 +125,7 @@ class Customers extends Persons */ public function getSuggest(): void { - $search = $this->request->getPost('term'); + $search = $this->request->getGet('term'); $suggestions = $this->customer->get_search_suggestions($search); echo json_encode($suggestions); @@ -136,7 +136,7 @@ class Customers extends Persons */ public function suggest_search(): void { - $search = $this->request->getPost('term'); + $search = $this->request->getGet('term'); $suggestions = $this->customer->get_search_suggestions($search, 25, false); echo json_encode($suggestions);