Code

Added title tag
[gosa.git] / plugins / admin / systems / class_servGeneric.inc
index 77377092cf8a2d409777950df6585803f21d7514..9c0f48cd1f442c63d0434f2fffc556b7810f816f 100644 (file)
@@ -71,7 +71,6 @@ class servgeneric extends plugin
     /* Check for action */
     if (isset($_POST['action'])){
       $cmd= search_config($this->config->data['TABS'], "workgeneric", "ACTIONCMD");
-      $cmd= "/bin/echo";
       if ($cmd == ""){
         print_red(_("No ACTIONCMD definition found in your gosa.conf"));
       } else {
@@ -95,7 +94,6 @@ class servgeneric extends plugin
           }
 
           for($i = 0; $i < $res['objectClass']['count'] ; $i ++){
-            if(($attrs['FAIstate'] == "") && ($res['objectClass'][$i] == "FAIobject")) continue;
             $attrs['objectClass'][] = $res['objectClass'][$i];
           }
 
@@ -104,9 +102,10 @@ class servgeneric extends plugin
           }
 
           if($attrs['FAIstate'] == ""){
+            #FIXME we should check if FAIobject is used anymore
             $attrs['FAIstate'] = array();
           }
-     
           $ldap->cd($this->dn);
           $ldap->modify($attrs);
           show_ldap_error($ldap->get_error());