Skip to content

Commit

Permalink
Fix customer sale suggestion (opensourcepos#4031)
Browse files Browse the repository at this point in the history
  • Loading branch information
jekkos committed Aug 3, 2024
1 parent e1f8b73 commit 0be9488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0be9488

Please sign in to comment.