From: hickert Date: Fri, 30 Apr 2010 12:15:34 +0000 (+0000) Subject: Updated systems ans its row colouring X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d7e3aa1a772df467419bc4e106a4cbe57e7ff46;p=gosa.git 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 --- 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"; } } }