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);