diff --git a/build/api/module/machineDefault.php b/build/api/module/machineDefault.php index 2b7a969..175cf92 100755 --- a/build/api/module/machineDefault.php +++ b/build/api/module/machineDefault.php @@ -524,7 +524,7 @@ ---------------------------------------------------------*/ { /* (1) On récupère les composants disponibles */ - $chipsReq = new Repo('chip/getForMachine', [$_SESSION['WAREHOUSE']['id'], $_SESSION['SATS']['id']]); + $chipsReq = new Repo('chip/getForMachine', [$_SESSION['WAREHOUSE']['id'], $id_machine]); $chips = ($chipsReq->error->get()==Err::Success) ? $chipsReq->answer() : [];