diff --git a/manager/repo/machine.php b/manager/repo/machine.php index 8c14f2c..03def90 100755 --- a/manager/repo/machine.php +++ b/manager/repo/machine.php @@ -103,7 +103,7 @@ AND cm.id_entity = m.id_machine AND m.id_warehouse = :id_warehouse AND cm.id_entity = :id_machine - AND cm.class = :class + AND c.class = :class ORDER BY c.id_cluster"); $get_clusters->execute([ ':id_warehouse' => $id_warehouse, diff --git a/manager/repo/user.php b/manager/repo/user.php index cc20543..c057858 100755 --- a/manager/repo/user.php +++ b/manager/repo/user.php @@ -115,7 +115,7 @@ WHERE cm.id_cluster = c.id_cluster AND cm.id_entity = u.id_user AND cm.id_entity = :id_user - AND cm.class = :class + AND c.class = :class AND u.id_warehouse = :id_warehouse ORDER BY c.id_cluster"); $get_clusters->execute([