diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index 175cf92..e34ce83 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -383,7 +383,7 @@ /* [3] Get history for the machine =========================================================*/ /* (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 */ if( $history_req->error->get() != Err::Success )