Code

Updated systems listing
[gosa.git] / gosa-plugins / systems / admin / systems / class_systemManagement.inc
index d9b59cf6613075d01291be5cc10fc7ad1cdb5777..56d1c62fb1c01a761bd5919e392e07c50f28809a 100644 (file)
@@ -1363,12 +1363,15 @@ class systemManagement extends management
   }
 
 
-  static function filterSystemDescription($row,$dn,$pid,$description=array())
+  static function filterSystemDescription($row,$dn,$pid,$state,$description=array())
   {
       $dn= LDAP::fix(func_get_arg(1));
       $desc = isset($description[0])?$description[0]:" ";
-      $rc = "<rowClass:entry-locked/>";
       $rc = "";
+      switch($state){
+        case 'locked' : $rc = "<rowClass:entry-locked/>"; break;
+        case 'error' : $rc = "<rowClass:entry-locked/>"; break;
+      }
       return("<a href='?plug=".$_GET['plug']."&amp;PID={$pid}&amp;act=listing_edit_{$row}' title='{$dn}'>{$desc}</a>{$rc}");
   }