Module: nagvis Branch: master Commit: ca0ebfd6120abd996f4c020c481119b4d9225786 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=ca0ebfd6120abd996f4c020c481119b4d9225786
Author: LaMi <[email protected]> Date: Tue Nov 17 21:16:22 2009 +0100 Fixed duplicate servicegroup members in hover list --- .../core/classes/objects/NagiosServicegroup.php | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/share/server/core/classes/objects/NagiosServicegroup.php b/share/server/core/classes/objects/NagiosServicegroup.php index d67d212..0f4ef35 100644 --- a/share/server/core/classes/objects/NagiosServicegroup.php +++ b/share/server/core/classes/objects/NagiosServicegroup.php @@ -63,8 +63,8 @@ class NagiosServicegroup extends NagVisStatefulObject { * @author Lars Michelsen <[email protected]> */ public function fetchMembers() { - // Get all member services - $this->fetchMemberServiceObjects(); + // The service objects are all fetched in fetchState() method + // Seems this is not needed anymore and only a dummy at this place } /** @@ -101,6 +101,9 @@ class NagiosServicegroup extends NagVisStatefulObject { $this->state = $this->summary_state; } else { + // Get all member services + $this->fetchMemberServiceObjects(); + // Get states of all members foreach($this->members AS &$OBJ) { $OBJ->fetchState(); ------------------------------------------------------------------------------ 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
