Module: nagvis
Branch: master
Commit: 86cf6ade22e2969f7024bef6ee79a8f3bb442d11
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=86cf6ade22e2969f7024bef6ee79a8f3bb442d11

Author: Roman Kyrylych <[email protected]>
Date:   Wed Jul 29 18:21:55 2009 +0300

backends: Do not return id from getObjectsEx

Signed-off-by: Roman Kyrylych <[email protected]>

---

 .../includes/classes/GlobalBackendmerlinmy.php     |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php 
b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
index 8853edd..fffa41a 100644
--- a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
+++ b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
@@ -250,11 +250,11 @@ class GlobalBackendmerlinmy implements 
GlobalBackendInterface {
                $ret = Array();
 
                if($type == 'host') {
-                       $QUERYHANDLE = $this->mysqlQuery('SELECT id, host_name 
AS name, address FROM host ORDER BY host_name');
+                       $QUERYHANDLE = $this->mysqlQuery('SELECT host_name AS 
name, address FROM host ORDER BY host_name');
                } elseif($type == 'service') {
-                       $QUERYHANDLE = $this->mysqlQuery('SELECT id, host_name 
AS host, service_description AS description FROM service ORDER BY host_name');
+                       $QUERYHANDLE = $this->mysqlQuery('SELECT host_name AS 
host, service_description AS description FROM service ORDER BY host_name');
                } elseif(in_array($type, array('hostgroup', 'servicegroup'))) {
-                       $QUERYHANDLE = $this->mysqlQuery("SELECT id, 
{$type}_name AS name, alias FROM $type ORDER BY {$type}_name");
+                       $QUERYHANDLE = $this->mysqlQuery("SELECT {$type}_name 
AS name, alias FROM $type ORDER BY {$type}_name");
                } else {
                        return Array();
                }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to