From 2709a109c79ea2126c618c8521336b457ba5ac51 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 29 Jan 2018 22:26:22 +0100 Subject: [PATCH] fixed build.api.module.machineDefault (added argument id_warehouse to machine.state (in view machine.listAll)) --- build/api/module/machineDefault.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )