Module: nagvis Branch: master Commit: e73d2e3bc0bbcc2286f2ee3443c349a0c0cbd002 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=e73d2e3bc0bbcc2286f2ee3443c349a0c0cbd002
Author: LaMi <[email protected]> Date: Thu Nov 12 15:31:18 2009 +0100 Fixed wrong ERROR summary states in hover menu child listings when a host has no services --- .../core/classes/objects/NagVisStatefulObject.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php b/share/server/core/classes/objects/NagVisStatefulObject.php index a6a2f96..4dc879d 100644 --- a/share/server/core/classes/objects/NagVisStatefulObject.php +++ b/share/server/core/classes/objects/NagVisStatefulObject.php @@ -663,8 +663,8 @@ class NagVisStatefulObject extends NagVisObject { } } - // Fallback for objects without members - if($iSumCount == 0) { + // Fallback for objects without state and without members + if($this->summary_state == '' && $iSumCount == 0) { $this->summary_state = 'ERROR'; } } ------------------------------------------------------------------------------ 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
