Code

Updated workstation generic
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 13:00:55 +0000 (13:00 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Apr 2008 13:00:55 +0000 (13:00 +0000)
-Do not send warning about installation if host is from incoming

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10302 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc

index fb8347ddd44add08ec2fa95cf63e7f27dbe637e8..67f82aa26dd83ab286f404c324ccd0dedf20037d 100644 (file)
@@ -466,12 +466,12 @@ class workgeneric extends plugin
       }
     }else{
       /* Warn the user, that this host is currently installing */
-      if($this->currently_installing && !$this->currently_installing_warned){
+      if($this->currently_installing && !$this->currently_installing_warned && !preg_match("/".normalizePreg(get_ou("incomingou"))."/",$this->orig_dn)){
         $this->currently_installing_warned = TRUE;
         $message[] = _("This host is currently installing, if you really want to save it, save again.");
       }
     }
-  
     return ($message);
   }