Further review and fixes to input->post(...) (#120)

This commit is contained in:
FrancescoUK
2016-01-16 22:04:12 +00:00
parent d66e6ab6ef
commit 5468127e2f
10 changed files with 93 additions and 91 deletions

View File

@@ -44,7 +44,7 @@ class Items extends Secure_area implements iData_controller
function find_item_info()
{
$item_number=$this->input->post('scan_item_number');
$item_number = $this->input->post('scan_item_number');
echo json_encode($this->Item->find_item_info($item_number));
}
@@ -391,8 +391,8 @@ class Items extends Secure_area implements iData_controller
'name'=>$this->input->post('name'),
'description'=>$this->input->post('description'),
'category'=>$this->input->post('category'),
'supplier_id'=>$this->input->post('supplier_id')=='' ? null : $this->input->post('supplier_id'),
'item_number'=>$this->input->post('item_number')=='' ? null : $this->input->post('item_number'),
'supplier_id'=>$this->input->post('supplier_id') == '' ? null : $this->input->post('supplier_id'),
'item_number'=>$this->input->post('item_number') == '' ? null : $this->input->post('item_number'),
'cost_price'=>$this->input->post('cost_price'),
'unit_price'=>$this->input->post('unit_price'),
'reorder_level'=>$this->input->post('reorder_level'),