mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-28 11:53:34 -04:00
Fix customer sale suggestion (#4031)
This commit is contained in:
@@ -125,7 +125,7 @@ class Customers extends Persons
|
||||
*/
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user