From 271e1b75bdabd6b41d45fb27c28cd25e7e918d72 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 8 Jul 2016 17:53:50 +0200 Subject: [PATCH] Correction : suite --- manager/repo/machine.php | 2 +- manager/repo/user.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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([