mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-07 01:52:20 -04:00
Resolved various issues with item kit maintenance, one of which was reported on #3754
This commit is contained in:
1 parent
43781c8231
commit
bef33fa3c9
3 files changed
+29
-22
No files matched your search
@@ -187,9 +187,9 @@ class Items extends Secure_Controller
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
|
||||
public function suggest(): void
|
||||
public function getSuggest(): void
|
||||
{
|
||||
$suggestions = $this->item->get_search_suggestions($this->request->getPostGet('term'), ['search_custom' => FALSE, 'is_deleted' => FALSE], TRUE);
|
||||
$suggestions = $this->item->get_search_suggestions($this->request->getGet('term'), ['search_custom' => FALSE, 'is_deleted' => FALSE], TRUE);
|
||||
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
@@ -201,9 +201,9 @@ class Items extends Secure_Controller
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
|
||||
public function suggest_kits(): void
|
||||
public function getSuggestKits(): void
|
||||
{
|
||||
$suggestions = $this->item->get_kit_search_suggestions($this->request->getPostGet('term'), ['search_custom' => FALSE, 'is_deleted' => FALSE], TRUE);
|
||||
$suggestions = $this->item->get_kit_search_suggestions($this->request->getGet('term'), ['search_custom' => FALSE, 'is_deleted' => FALSE], TRUE);
|
||||
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user