[Fixed] getMachineWorkingInformation() was implemented with 'static' machine id -> now dynamic

This commit is contained in:
xdrm-brackets 2017-02-23 16:21:58 +01:00
parent d8e933f63a
commit c58beb524e
1 changed files with 3 additions and 1 deletions

View File

@ -177,6 +177,7 @@
//TODO: GROUP_CONCAT(DISTINCT a.id_action ORDER BY a.id_action ASC)
$u = Table::get('user')
->whereIdWarehouse($id_warehouse)
->select('id_user')
->select('code');
@ -184,7 +185,8 @@
->join('id_user', $u);
$m = Table::get('machine')
->whereId(5);
->whereIdWarehouse($id_warehouse)
->whereId($id_machine);
$mcm = Table::get('machine_cluster_merge')
->join('id_machine', $m);