From 8d7e3aa1a772df467419bc4e106a4cbe57e7ff46 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 30 Apr 2010 12:15:34 +0000 Subject: [PATCH] Updated systems ans its row colouring -If we've concurrent states with 'error' and 'locked', then let error win. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17998 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc index d4f66f2cb..ce1f76257 100644 --- a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc +++ b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc @@ -86,9 +86,7 @@ class filterSYSTEMS { foreach(array('gotoWorkstation','gotoTerminal','goServer') as $type){ if(in_array($type, $entry['objectClass'])){ - if(isset($entry['gotoMode'][0]) && preg_match("/locked/i", $entry['gotoMode'][0])){ - $state = "locked"; - }elseif(isset($entry['FAIstate'][0])){ + if(isset($entry['FAIstate'][0])){ switch (preg_replace('/:.*$/', '', $entry['FAIstate'][0])) { case 'error': $state= 'error'; @@ -101,6 +99,8 @@ class filterSYSTEMS { $state= 'busy'; break; } + }elseif(isset($entry['gotoMode'][0]) && preg_match("/locked/i", $entry['gotoMode'][0])){ + $state = "locked"; } } } -- 2.30.2