Fix item suggestion in item kits, fix category suggestion in item form

(#328)
This commit is contained in:
jekkos committed 2016-03-07 22:42:42 +01:00
1 parent 554f2b32db
commit fe2787217f
5 files changed
+249 -148

No files matched your search

+2 -2
View File
@@ -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);
}