From e591d2c3babcf5ee4d7d188a526304b44efe07f0 Mon Sep 17 00:00:00 2001 From: Victor Vassilev Date: Wed, 24 Oct 2018 13:13:36 +0300 Subject: [PATCH] fix(acl-react): update topology extract where clause from db Update topology for react endpoint to return topologies that have topology_url not topology_page not null Resolves: MON-3147 --- src/Centreon/Domain/Repository/TopologyRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Centreon/Domain/Repository/TopologyRepository.php b/src/Centreon/Domain/Repository/TopologyRepository.php index c08f6d9048a..34152a6dd89 100644 --- a/src/Centreon/Domain/Repository/TopologyRepository.php +++ b/src/Centreon/Domain/Repository/TopologyRepository.php @@ -93,7 +93,7 @@ public function getReactTopologiesPerUserWithAcl($user) if (count($topology)) { $query3 = "SELECT topology_url " . "FROM topology FORCE INDEX (`PRIMARY`) " - . "WHERE topology_page IS NOT NULL " + . "WHERE topology_url IS NOT NULL " . "AND is_react = '1' " . "AND topology_id IN (" . implode(', ', $topology) . ") "; $DBRESULT3 = $this->db->query($query3);