Fix supplier category after update (#2972)

This commit is contained in:
Jeroen Peelaerts
2020-11-07 22:25:35 +01:00
parent a8aafb6f47
commit 5a124ede99

View File

@@ -22,6 +22,7 @@ class Suppliers extends Persons
public function get_row($row_id)
{
$data_row = $this->xss_clean(get_supplier_data_row($this->Supplier->get_info($row_id)));
$data_row['category'] = $this->Supplier->get_category_name($data_row['category']);
echo json_encode($data_row);
}