fixed build.api.module.machineDefault (added argument id_warehouse to machine.state (in view machine.listAll))

This commit is contained in:
xdrm-brackets 2018-01-29 22:26:22 +01:00
parent 1f91f4feb1
commit 2709a109c7
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@
/* [3] Get history for the machine /* [3] Get history for the machine
=========================================================*/ =========================================================*/
/* (1) Write request */ /* (1) Write request */
$history_req = new Repo('history/getByIdMachine', [$id_machine]); $history_req = new Repo('history/getByIdMachine', [$_SESSION['WAREHOUSE']['id'], $id_machine]);
/* (2) Manage error */ /* (2) Manage error */
if( $history_req->error->get() != Err::Success ) if( $history_req->error->get() != Err::Success )