diff --git a/app/Controllers/Customers.php b/app/Controllers/Customers.php index 9ffbce291a..3ff28aa881 100644 --- a/app/Controllers/Customers.php +++ b/app/Controllers/Customers.php @@ -125,7 +125,7 @@ public function getSearch(): void */ public function getSuggest(): void { - $search = Services::htmlPurifier()->purify($this->request->getPost('term')); + $search = Services::htmlPurifier()->purify($this->request->getGet('term')); $suggestions = $this->customer->get_search_suggestions($search); echo json_encode($suggestions);