mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 00:58:37 -04:00
Fix item suggestion in item kits, fix category suggestion in item form
(#328)
This commit is contained in:
1 parent
554f2b32db
commit
fe2787217f
5 files changed
+249
-148
No files matched your search
@@ -137,7 +137,7 @@ class Items extends Secure_area implements iData_controller
|
||||
*/
|
||||
function suggest_category()
|
||||
{
|
||||
$suggestions = $this->Item->get_category_suggestions($this->input->post('term'));
|
||||
$suggestions = $this->Item->get_category_suggestions($this->input->get('term'));
|
||||
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
@@ -147,7 +147,7 @@ class Items extends Secure_area implements iData_controller
|
||||
*/
|
||||
function suggest_location()
|
||||
{
|
||||
$suggestions = $this->Item->get_location_suggestions($this->input->post('term'));
|
||||
$suggestions = $this->Item->get_location_suggestions($this->input->get('term'));
|
||||
echo json_encode($suggestions);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user